xlsx to nested JSON
See original GitHub issueIs it possible to read a xlsx file and convert it to a nested JSON? (i’m using node.js)
For example, this table:
Name | City | Country Jon | New York | USA Jon | Kansas | USA Peter | Nevada | USA
to this JSON:
{
"Name": "Jon",
"Addresses": [
{"City": "New York", "Country": "USA"},
{"City": "Kansas", "Country": "USA"}
]
},
{
"Name": "Peter",
"Addresses": [
{"City": "Nevada", "Country": "USA"}
]
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (1 by maintainers)
Top Results From Across the Web
How to convert Excel to JSON - Easy Data Transform
Excel and JSON are very different formats, but you can quickly convert Excel .xlsx or .xls files to JSON (including nested JSON) with...
Read more >xlsx to nested JSON · Issue #1591 - GitHub
otherwise, just transform the json you get from xlsx sheet to json to the structure you prefer looping over json array records and...
Read more >How to convert a nested json object into an excel table using ...
writeFile(workBook, 'Tests.xlsx');. But quite expectedly it doesn't process the nested object the way I would like it to. I can't ...
Read more >How can I create a nested JSON from an Excel- or CSV-file?
stefanh asked a question. ... How can I create a nested JSON from an Excel- or CSV-file? ... The attributes can be adjusted...
Read more >Read from Multiple Excel Tables to Nested JSON
I have a connector that I have no problem working with to populate the container objects using List rows present and then apply...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As @RandomFractals discussed, there’s no simple general solution but you can always massage the output of
sheet_to_json
e.g.OK thanks for explanation 👍 @RandomFractals