Skip to content

problem with nesting? #7

@fgregg

Description

@fgregg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions