Skip to content

Conversation

@tdykstra
Copy link
Contributor

@tdykstra tdykstra commented Aug 25, 2021

Follow-up to #25792

File Type File Name Published Url
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-25812#write-raw-values

@tdykstra tdykstra requested a review from BillWagner August 25, 2021 22:42
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

This LGTM @tdykstra

You can :shipit: when ready

@tdykstra tdykstra merged commit 4c3134a into dotnet:main Aug 26, 2021
@tdykstra tdykstra deleted the stjwriterawjson branch August 26, 2021 19:28
@tdykstra tdykstra added the okr-freshness OKR: Freshness of content label Sep 14, 2021

::: zone pivot="dotnet-5-0,dotnet-core-3-1"

The `Newtonsoft.Json` `WriteRawValue` method writes raw JSON where a value is expected. <xref:System.Text.Json> has no direct equivalent, but here's a workaround that ensures only valid JSON is written:
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this section be updated to indicate that there's support for this in 6.0?

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants