3 ms·
I can't imagine a usecase. Ok, you receive incremental updates, which could be useful, but how to find out that json object is actually received in full already
by codesnik 1y ago
I can't imagine a usecase. Ok, you receive incremental updates, which could be useful, but how to find out that json object is actually received in full already?
- philipallstar 1y agoWhen its closing brace or square bracket appears. EDIT: this is totally wrong and the question is right.
- deleted 1y ago[deleted]
- rising-sky 1y agoActually, not quite how this works. You always get valid JSON, as in this sequence from the readme: ```json {"name": "Al"} {"name": "Ale"} ``` So the braces are always closed
- Supermancho 1y agoWhen you want to pull multi-gig JSON files and not wait for the full file before processing is where I first used this.
- rictic 1y agoFunnily enough, this was one of the first users of jsonriver at google. A team needed to parse more JSON than most JS VMs will allow you to fit into a single string, so they had no choice but to use a streaming parser.