I want to parse ndjson (newline delimited json) data with NeoJSON on Pharo Smalltalk.
ndjson data looks like this:
{"smalltalk": "cool"}
{"pharo": "cooler"}
At the moment I convert my file stream to a string, split it on newline and then parse the single parts using NeoJSON. This seems to use an unnecessary (and extremely huge) amount of memory and time, probably because of converting streams to strings and vice-versa all the time. What would be an efficient way to do this task?
If you look for sample data: NYPL-publicdomain: pd_items_1.ndjson