3 ms·
Back in the bad old days when XML consumers hit similar problems we’d use and event based parser like SAX. I’m a little shocked there isn’t a mainstream equival
by mlhpdx 4y ago
Back in the bad old days when XML consumers hit similar problems we’d use and event based parser like SAX. I’m a little shocked there isn’t a mainstream equivalent for JSON — is there something I’ve missed?
- jahewson 4y agoOh yes, some time ago I wrote a nodejs module to handle large xml files like that https://www.npmjs.com/package/big-xml https://www.npmjs.com/package/big-xml For JSON, given that large files are generally record-based ndjson is the solution I’ve encountered http://ndjson.org/ http://ndjson.org/ and it works nicely with various tools out there using the .ndjson file extension