-
Notifications
You must be signed in to change notification settings - Fork 1k
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
JSON builder #1386
Comments
#1327 is related and probably duplicate. |
The fastest way to get this done is definitely to create a new API for it. However, users often want the ability to edit, so a DOM builder is probably OK as well (though it would be more complicated). As for On Demand, there are possibilities for speed: since On Demand already knows the JSON text for each existing token, it can preserve that text and insert/delete values by slicing and dicing the existing text and adding new text chunks via something like a rope. (Without a rope, one is likely going to spend a lot of time copying in the insert/delete case.) |
I think that @xelatihy's issue is only for On Demand. |
For many needs, and ours certainly, OnDemand is a preference and editing is not. Meaning that creating/serializing JSON in a "streaming" fashion is fine. Editing requires a significant more complex API and, I am assuming, implementation. |
+1 Would like to see this as well. |
|
+1 Please! |
1 similar comment
+1 Please! |
@lemire I will start working on this! |
@lemire even though this is likely to be a multi-person effort, can you assign it to me? |
@FranciscoThiesen I just did. Note that I recommend starting small. Do not try to solve the problem at once. Just implement something. There will be plenty of feedback. |
Any progress updates 👏? @FranciscoThiesen |
Some users would like simdjson to help build JSON files.
See discussion at #2086
cc @jkeiser
The text was updated successfully, but these errors were encountered: