Closed mderazon closed 5 years ago
btw, i'm curious to know how did you handle streaming all keys without knowing the keys in advance ? The keys have to go on the top of the file no ?
+1 I'm having the same problem. How do we handle nested object/collections?
close because deprecated: No time for maintenance
How did you guys solve that issue ?
https://github.com/zemirco/json2csv now has a streams API, please use that module as this one is deprecated/unmaintained.
Hi, very nice module ! Some of my data has nested objects in it, I got this exception thrown:
Here's the line that goes into
JSON.parse()
right before it crashesThis is not a valid JSON object, the nested
push
object doesn't close properly. Looking at the data I get from the stream, I see that the data integrity is okay, so the problem might be that it breaks the JSON object in the middle of the line ?Is the any way to tell json2csv to ignore nested objects ? (How does it deal with them anyway ? does it flatten them ?)