Comment by codesnik

Comment by codesnik 8 hours ago

5 replies

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?

Supermancho 7 hours ago

When you want to pull multi-gig JSON files and not wait for the full file before processing is where I first used this.

  • rictic 7 hours ago

    Funnily 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.

philipallstar 8 hours ago

When its closing brace or square bracket appears.

EDIT: this is totally wrong and the question is right.

  • rising-sky 8 hours ago

    Actually, 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

  • [removed] 8 hours ago
    [deleted]