json2csv icon indicating copy to clipboard operation
json2csv copied to clipboard

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

Open drewhendrickson opened this issue 11 years ago • 7 comments

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.

drewhendrickson avatar Sep 20 '13 07:09 drewhendrickson

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?

jehiah avatar Sep 20 '13 11:09 jehiah

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

drewhendrickson avatar Sep 23 '13 12:09 drewhendrickson

any updates?

mattes avatar Jun 29 '14 23:06 mattes

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.

drewhendrickson avatar Jun 30 '14 03:06 drewhendrickson

+1

rfink avatar Apr 30 '15 17:04 rfink

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

primeminister avatar Apr 20 '16 13:04 primeminister

Any solution?

fuad00 avatar May 13 '23 13:05 fuad00