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

Proposal: more abstracted SAX handler for lots of JSON manipulates #63

Open
liuq19 opened this issue Apr 19, 2023 · 0 comments
Open

Proposal: more abstracted SAX handler for lots of JSON manipulates #63

liuq19 opened this issue Apr 19, 2023 · 0 comments
Labels

Comments

@liuq19
Copy link
Collaborator

liuq19 commented Apr 19, 2023

SAX handler is necessary because it consumes less memory and has fast performance. especially based on SIMD skip. Now, sonic-cpp's handler is designed to parse the whole json, and lazysax is limited to only parsing the top level of json. There are many limits:

  1. not support load or skip according to the user-defined handler.
  2. can not check json type in sax.

We can add SkipOne(raw json), CheckOne(type) and other handler functions, to support lots of JSON manipulates, such as, merge json, cut json, and so on.

@liuq19 liuq19 changed the title Proposal: abstracted SAX handler based on ParseLazy for lots of JSON manipulates Proposal: more abstracted SAX handler for lots of JSON manipulates Apr 19, 2023
@liuq19 liuq19 added the good first issue Good for newcomers label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant