pratik227/vue3-json-excel

Nested Data is not parsed correctly

Closed this issue · 6 comments

Describe the bug
Trying the example data nested objects get stringified to [object Object]

grafik

json_fields: {
      "Complete name": "name",
      City: "city",
      Telephone: "phone.mobile",
      "Telephone 2": {
        field: "phone.landline",
        callback: (value) => {
          return `Landline Phone - ${value}`;
        },
      },
    },

Have you tried this ?

https://github.com/pratik227/vue3-json-excel?tab=readme-ov-file#example

okay it works with field but I just want the data as is without a mapping

Object can't directly converted refer this example. https://vue-json-excel3.netlify.app/using-callbacks-examples.html

oh i get it, how should the parser know what to reduce it to.

Closing this issue