kaue / jsonexport

{} → :page_facing_up: it's easy to convert JSON to CSV
http://kaue.github.io/jsonexport/
Apache License 2.0
247 stars 41 forks source link

Ability to select the columns of interest #60

Open vasuh opened 5 years ago

vasuh commented 5 years ago

Hi,

I have a json to be converted to csv which seems to be doing fine with jsonexport. In addition, I have used the headers and rename options to specify the header and equivalent names and its working well.

The json object has a number of fields and I am interested in a subset of them. Is this possible?. For eg, if the column headers are field1, field2, field3.. etc, say I need only field1 and field2. How would I go about selecting them?

Thanks Vasu

AckerApple commented 5 years ago

If you send jsonexport only the data you want to export, then you will have the data you want exported.

Basic simple JavaScript should be used to manipulate your data to exactly what you want exported, and then you export it.

If jsonexport did everything for us, I’d play pinball all day

vasuh commented 5 years ago

Thanks for the response. Thats OK, wanted to make sure if there was an option I wasnt aware of /using incorrectly.

kaue commented 4 years ago

@vasuh I will consider adding an option to filter a subset of headers.