Skip to content

Add option for parsing documents in arrays #3

New issue

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

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

Already on GitHub? # to your account

Closed
mrodrig opened this issue Jan 24, 2019 · 0 comments
Closed

Add option for parsing documents in arrays #3

mrodrig opened this issue Jan 24, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mrodrig
Copy link
Owner

mrodrig commented Jan 24, 2019

In order to add support for mrodrig/json-2-csv#102, we should add some sort of option that can be specified in order to determine whether documents appearing in arrays should also be parsed for keys.

If documents in arrays are parsed, then json-2-csv will have a harder time converting the CSV back to the original JSON, which is why an option would be nice.

When documents in arrays are not parsed, json-2-csv is currently using JSON.stringify to get the value, which means that the exact JSON for arrays can be recreated when converting back to JSON from CSV.

Providing an option allows the user to select the behavior that fits their use case.

@mrodrig mrodrig added the enhancement New feature or request label Jan 24, 2019
@mrodrig mrodrig added this to the 2.1.0 milestone Jan 24, 2019
@mrodrig mrodrig self-assigned this Jan 24, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant