Should Utf8JsonReader expose whether a JSON string needs to be unescaped or not? #28421
Labels
api-suggestion
Early API idea and discussion, it is NOT ready for implementation
area-System.Text.Json
backlog-cleanup-candidate
An inactive issue that has been marked for automated closure.
Milestone
The
Utf8JsonReader
already knows whether a particular JSON string needs to be unescaped. If it stored that fact (and publicly exposed it), users likeJsonDocument
would not need to duplicate that check (which means we save the search for a backslash in the json payload).https://github.com/dotnet/corefx/blob/77096755443730962810662501f82550fdb4656d/src/System.Text.Json/src/System/Text/Json/Utf8JsonReader.cs#L760-L771
cc @bartonjs
The text was updated successfully, but these errors were encountered: