Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support incremental parsing #14

Open
cgay opened this issue Jan 26, 2023 · 0 comments
Open

Support incremental parsing #14

cgay opened this issue Jan 26, 2023 · 0 comments

Comments

@cgay
Copy link
Member

cgay commented Jan 26, 2023

[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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant