Skip to content

UnicodeJsonConverter is the wrong way to encode strings with System.Text.Json #136

@rjgotten

Description

@rjgotten

System.Text.Json supports encoding schemes using the JavaScriptEncoder class directly via its serializer options.
https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/character-encoding

Using a converter for this is an anti-pattern and might double up on the time spent on escaping.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions