-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
docs/standard/serialization/system-text-json-migrate-from-newtonsoft-how-to.md
Outdated
Show resolved
Hide resolved
docs/standard/serialization/system-text-json-use-dom-utf8jsonreader-utf8jsonwriter.md
Outdated
Show resolved
Hide resolved
docs/standard/serialization/system-text-json-use-dom-utf8jsonreader-utf8jsonwriter.md
Outdated
Show resolved
Hide resolved
docs/standard/serialization/system-text-json-use-dom-utf8jsonreader-utf8jsonwriter.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
@gewarren Thanks for the review and corrections! |
There was a problem hiding this 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). |
There was a problem hiding this comment.
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
Fixes #24212