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

Address System.Text.Json feedback from #24963 #26593

Merged
merged 6 commits into from
Oct 29, 2021

Conversation

tdykstra
Copy link
Contributor

@tdykstra tdykstra commented Oct 20, 2021

Fixes #24212

File Type File Name Published Url
Content docs/standard/serialization/system-text-json-use-dom-utf8jsonreader-utf8jsonwriter.md https://review.docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-use-dom-utf8jsonreader-utf8jsonwriter?branch=pr-en-us-26593
Content docs/standard/serialization/system-text-json-migrate-from-newtonsoft-how-to.md https://review.docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-migrate-from-newtonsoft-how-to?branch=pr-en-us-26593

@tdykstra tdykstra changed the title WIP: Address System.Text.Json feedback from #24963 Address System.Text.Json feedback from #24963 Oct 20, 2021
@tdykstra tdykstra marked this pull request as ready for review October 20, 2021 22:34
@tdykstra tdykstra requested review from layomia, adegeo and a team October 20, 2021 22:35
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
@tdykstra
Copy link
Contributor Author

@gewarren Thanks for the review and corrections!

@tdykstra tdykstra merged commit a239d67 into dotnet:main Oct 29, 2021
@tdykstra tdykstra deleted the 24963followup branch October 29, 2021 16:23
Copy link
Contributor

@layomia layomia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


### JsonDocument is read-only

The <xref:System.Text.Json> DOM can't add, remove, or modify JSON elements. It's designed this way for performance and to reduce allocations for parsing common JSON payload sizes (that is, < 1 MB). If your scenario currently uses a modifiable DOM, one of the following workarounds might be feasible:
The <xref:System.Text.Json> DOM can't add, remove, or modify JSON elements. It's designed this way for performance and to reduce allocations for parsing common JSON payload sizes (that is, < 1 MB).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: The xref:System.Text.Json DOM -> JsonDocument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update System.Text.Json documentation for .NET 6
4 participants