Skip to content

Sane defaults #6

@jybp

Description

@jybp

👋 Any reason we cannot make the program work in a default mode without having to setup special configuration?
json2csv -i file.json -o file.csv?
It could throw an error if there's some unsupported corner cases that can't be solved but would be useful for some simple use cases, like:

[
        {
                "type": "foo1",
                "obj": {
                        "number": 123
                }
        },
        {
                "type": "foo2",
                "obj": {
                        "number": 456
                }
        }
]

Would just produce:

type,obj.number
foo1,123
foo2,456

I could work toward a PR.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions