3 ms·
There's libraries like ijson. At my last job, i wrote a wrapper around this C++ library called rapidjson to parse streaming json. It worked quite well. Here's
by saidinesh5 4y ago
There's libraries like ijson.
At my last job, i wrote a wrapper around this C++ library called rapidjson to parse streaming json. It worked quite well.
Here's the write up about it: https://dinesh.cloud/2022/streaming-json-for-fun-and-profit/ https://dinesh.cloud/2022/streaming-json-for-fun-and-profit/
And here's the code: https://github.com/multiversal-ventures/json-buffet https://github.com/multiversal-ventures/json-buffet
The API isn't the best. I'd have preferred an iterator based solution as opposed to this callback based one. But we worked with what rapidjson gave us for the proof of concept.
The reason for this specific implementation was we wanted to build an index to query the server directly about it's huge json files (compressed size of 20+GB per file) using http range queries.