json-to-multicsv
json-to-multicsv copied to clipboard
problem with nesting?
When working with this nested json, this command gives the following error.
> echo '[{"nested": {"z": 1, "a": [{"c": 2}, {"b": 3}]}}]' > nested.json
> json-to-multicsv.pl --file nested.json --path /:table:base --path /*/nested/:table:nested
Don't know how to handle object at /*/nested/*/1/. Suggestions:
--path /*/nested/*/1/:table:name
--path /*/nested/*/1/:column
--path /*/nested/*/1/:row
--path /*/nested/*/1/:ignore
I would expect that it would say instead, Don't know how to handle object at /*/nested/a.
This command works well:
json-to-multicsv.pl --file pure.json --path /:table:base --path /*/nested/:table:nested --path /*/nested/a/:table:a