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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GR-53733] Refactor JSON printing #8901

Merged
merged 6 commits into from
May 16, 2024
Merged

[GR-53733] Refactor JSON printing #8901

merged 6 commits into from
May 16, 2024

Conversation

graalvmbot
Copy link
Collaborator

No description provided.

Each individual key had its own insertion logic that boiled down to:

* Index into non-null buckets and sub-buckets
* Create nested maps if they don't exist

This factors out all this logic into a central place to insert values
with arbitrary key sequences and only a single location with an
unchecked cast.
Can be used to more easily and safely produce Json data without dealing
with separators and proper closing of scopes.
JsonBuilder should be created through a JsonWriter instance directly.
It cannot throw an IOException since it does not write anything on
creation.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 10, 2024
@graalvmbot graalvmbot closed this May 16, 2024
@graalvmbot graalvmbot deleted the pz/GR-53733-json branch May 16, 2024 00:14
@graalvmbot graalvmbot merged commit 437ecaa into master May 16, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants