Nested Data is not parsed correctly
Closed this issue · 6 comments
sschneider-ihre-pvs commented
pratik227 commented
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
pratik227 commented
sschneider-ihre-pvs commented
okay it works with field but I just want the data as is without a mapping
pratik227 commented
Object can't directly converted refer this example. https://vue-json-excel3.netlify.app/using-callbacks-examples.html
sschneider-ihre-pvs commented
oh i get it, how should the parser know what to reduce it to.
pratik227 commented
Closing this issue