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

ast.Node should support Delete/Unset at any depth, possibly with options to remove empty arrays and objects #731

Open
scr-oath opened this issue Jan 13, 2025 · 1 comment

Comments

@scr-oath
Copy link

I'd like to think that, for massive changes to json structures, parsing into, using, then marshaling out of an AST should be more performant than a gjson/sjson pair that has to re-parse newly returned []byte. One convenience feature that is missing is the ability to delete at any depth by path (...any for ast.Node style).

@AsterDY
Copy link
Collaborator

AsterDY commented Jan 20, 2025

Yes, It can be implemented based on sonic's current API, just need a convenient encapsulation on them. It just take some time for coding..

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

2 participants