👋 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.
👋 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:
I could work toward a PR.