Skip to content

Support incremental parsing #14

@cgay

Description

@cgay

[Inspired by a conversation with "zulu.inoue" on the common-lisp Discord, and their "jzon" CL JSON parser.]

Should have an API for parsing multiple json objects from a stream. Currently we call read-to-end to get the entire thing. I think this is a very simple fix, I just never did it.

zulu is also providing an event-based interface for lower level parsing in case of handling untrusted data that might cause a stack overflow and so on. Might want to look at that.

Relevant: https://github.com/dylan-lang/json/blob/master/parser.dylan#L370

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions