Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array of Objects #5

Open
reachOutSaRa opened this issue Apr 28, 2021 · 1 comment
Open

Array of Objects #5

reachOutSaRa opened this issue Apr 28, 2021 · 1 comment

Comments

@reachOutSaRa
Copy link

Is there a way to get array of objects.

@noahzark
Copy link
Owner

Is there a way to get array of objects.

Hi Sara,

If you need to get array of objects which shares the same attributes/structure, you can just create a new sheet and configure it, and pass the third argument as true (https://github.com/noahzark/Xlsx2Json#arguments)

If you want to generate complex list of main objects which also has array of sub objects inside it. This tool doesn't support this kind of structure. Generally we don't recommend storing list/array of objects in just one cell, it would be pretty hard to maintain and also violates the second normal form2nf. Better practice would be store the array of sub objects in a new sheet, and store the IDs of the sub objects in the main object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants