07-03-2020 01:45 AM
Hi , I need a help I am getting data in the array format and I have to create it in the json format to dump it in CSV file
Solved! Go to Solution.
07-03-2020 03:20 AM
Hi @mjain
Here’s a pipeline in which the elements in the nested array are transformed into JSON documents that can be consumed by a CSV Formatter Snap.
Array_to_CSV_2020_07_03.slp (7.2 KB)
Hope it helps.
BR,
Dimitri
07-03-2020 01:58 AM
Hi @mjain,
Maybe you could try and use the JSON Splitter Snap to split the array into separate JSON documents.
BR,
Dimitri
07-03-2020 02:22 AM
Hi Dimitri thanks for the quick reply I am attacting the screenshot can you please look into this. I have also tried json splitter but it is not working And the file header shoud be first array.
I am expecting in
07-03-2020 03:20 AM
Hi @mjain
Here’s a pipeline in which the elements in the nested array are transformed into JSON documents that can be consumed by a CSV Formatter Snap.
Array_to_CSV_2020_07_03.slp (7.2 KB)
Hope it helps.
BR,
Dimitri
07-03-2020 03:39 AM
Thank you so much. It worked.