Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
drewhendrickson opened this issue Sep 20, 2013 · 7 comments

Comments

@drewhendrickson
Copy link

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
Copy link
Owner

jehiah commented Sep 20, 2013

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
Copy link
Author

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

@mattes
Copy link

mattes commented Jun 29, 2014

any updates?

@drewhendrickson
Copy link
Author

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
Copy link

rfink commented Apr 30, 2015

+1

@primeminister
Copy link

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

@fuad00
Copy link

fuad00 commented May 13, 2023

Any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants