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

SAX-like parsing and writing #33

Open
xelatihy opened this issue Aug 21, 2021 · 7 comments
Open

SAX-like parsing and writing #33

xelatihy opened this issue Aug 21, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@xelatihy
Copy link

Is your feature request related to a problem? Please describe.
The library requires loading into its own data structure when reading and building a data structure when writing.
This incurs some overhead if one wants to just load or save a custom data structure.

Describe the solution you'd like
It would be good to have a direct interface to the low-level parser, maybe in terms of callbacks for reading. For writing, just exposing a simple API to format the various JSON elements might be good.

Describe alternatives you've considered
Right now, one parses the data into the yyjson document and then reads from it.

@ibireme ibireme added the enhancement New feature or request label Aug 22, 2021
@ibireme
Copy link
Owner

ibireme commented Aug 22, 2021

I do have plans to add a streaming or SAX API, maybe in version 0.5 or 0.6.

@xelatihy
Copy link
Author

great --- thanks

@ibireme
Copy link
Owner

ibireme commented Oct 15, 2021

@zhoufei1 Please open a new issue.

Repository owner deleted a comment from zhoufei1 Dec 7, 2021
Repository owner deleted a comment from zhoufei1 Dec 7, 2021
Repository owner deleted a comment from zhoufei1 Dec 7, 2021
Repository owner deleted a comment from zhoufei1 Dec 7, 2021
@david542542
Copy link

@ibireme hey, how is the streaming API coming along? That's the feature we're waiting for to start using this library!

@wang21825227
Copy link

What is the progress of supporting SAX api? @ibireme

@wang21825227
Copy link

What is the progress of supporting SAX api? @ibireme
Does the latest released version support it?

@ibireme
Copy link
Owner

ibireme commented Dec 19, 2023

What is the progress of supporting SAX api? @ibireme

No progress yet, I've tried to design some APIs but they seem hard to use.

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

No branches or pull requests

4 participants