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

Decouple JsonElements from JsonDocument. #2340

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

brentschmaltz
Copy link
Member

In some multi threaded situations the incorrect JsonElement could have been returned.
Each JsonProperty is stored in a dictionary as a <name, JsonElement>.
First cloning the JsonElement to detach from the JsonDocument.

The JsonDocument is now correctly disposed by the creator.

@brentschmaltz brentschmaltz merged commit c2fa102 into dev6x Oct 2, 2023
1 check passed
@brentschmaltz brentschmaltz deleted the brentsch/JsonDocument6x branch October 2, 2023 16:36
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

Successfully merging this pull request may close these issues.

3 participants