jehiah / json2csv

command line tool to convert json to csv
MIT License
801 stars 94 forks source link

Option to include all fields in output (without specifying all of them) #14

Open drewhendrickson opened 11 years ago

drewhendrickson commented 11 years ago

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.

jehiah commented 11 years ago

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?

drewhendrickson commented 11 years ago

I'll take a look at adding that feature but might wait to see how the output header ends up being implemented.

mattes commented 10 years ago

any updates?

drewhendrickson commented 10 years ago

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.

rfink commented 9 years ago

+1

primeminister commented 8 years ago

+1, Just want to have all fields as headers and the values as ... value.

fuad00 commented 1 year ago

Any solution?