json2csv
json2csv copied to clipboard
Option to include all fields in output (without specifying all of them)
It'd be nice to be able to do something like json2csv -k *
where the *
indicates all fields from the json object will be included in the output.
clever idea.
This might become a little challenging when you have messages with variable fields and when you want to output headers (as proposed in #13). I can imagine at least making it possible to output all fields of the first message seen.
Do you want to take a pass a trying to implement that?
I'll take a look at adding that feature but might wait to see how the output header ends up being implemented.
any updates?
I ended up not getting back to this after I waited to see what would happen with the output header. Not sure if anyone else took it up.
+1
+1, Just want to have all fields as headers and the values as ... value.
Any solution?