andreyan-andreev / node-excel-export

130 stars 52 forks source link

Support for nested JSON object missing #20

Open dronzer1010 opened 7 years ago

dronzer1010 commented 7 years ago

Hello ,

I have a very large dataset that I wanted to export in excel , issue is my dataset contains nested JSON values as well . Can you please let me know a way to do this? or if you have not added support for nested JSON , please add it.

andreyan-andreev commented 7 years ago

Can you describe what you imagine the end result should look like?

guenruiz commented 7 years ago

Same problem here. Is it possible to call a nested JSON Property? for instance: is it possible to call "billingAddress.street"?


{
    name: 'Enrique',
    billingAddress : {
        street: '5th',
        city:'CUU'
    }
}
``
omardlhz commented 6 years ago

@guenruiz were you able to do this?

am2367 commented 6 years ago

I was able to do it by restructuring my object to be flatter but it was not efficient at all. I now need to merge every 4 rows and the merges array is getting so large that I run out of memory. This library definitely needs more work.

omardlhz commented 6 years ago

@am2367 my PR supports nested objects, take a look at it here.

am2367 commented 6 years ago

@omardlhz Thanks I will take a look.