kaue / jsonexport

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

RangeError: Maximum call stack size exceeded #19

Closed harshalyeole-tudip closed 7 years ago

harshalyeole-tudip commented 7 years ago

/api/node_modules/jsonexport/lib/index.js:197 function checkType(element, item){ ^

RangeError: Maximum call stack size exceeded

kaue commented 7 years ago

@harshalyeole-tudip whats the size of the json you are trying to export to csv?

Check https://github.com/kauegimenes/jsonexport/issues/9

harshalyeole-tudip commented 7 years ago

Size would be more than array of 500 JSON objects.

kaue commented 7 years ago

Can you try with a lower number of elements?

harshalyeole-tudip commented 7 years ago

But it is of no use then.

kaue commented 7 years ago

I am trying to confirm if the issue is releated to the collection size.

harshalyeole-tudip commented 7 years ago

Yes Does it support all sizes of collection?

jtlindsey commented 7 years ago

Have you guys tried json2csv? I'm experimenting with it now because i need to use with collection over 3000 results.

https://www.npmjs.com/package/json2csv

kaue commented 7 years ago

@harshalyeole-tudip @jtlindsey v2.0.0 should support big collections using node.js streams https://github.com/kauegimenes/jsonexport/tree/v2.0.0#stream