js-callgraph
js-callgraph copied to clipboard
Fix invalid string length error in JSON.stringify when handling big projects
This fixes memory and invalid string length errors in JSON.stringify when dumping the CG as a JSON.
Adapted this solution: https://dev.to/madhunimmo/json-stringify-rangeerror-invalid-string-length-3977 as it fits very well in our use case, as our JSON object is a simple array of (possibly many) short objects.