jsonexport icon indicating copy to clipboard operation
jsonexport copied to clipboard

Ability to select the columns of interest

Open vasuh opened this issue 6 years ago • 3 comments

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

vasuh avatar Mar 25 '19 00:03 vasuh

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

AckerApple avatar Mar 25 '19 01:03 AckerApple

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

vasuh avatar Mar 25 '19 01:03 vasuh

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

kaue avatar May 23 '20 13:05 kaue