Skip to content

Option to JSON Serialize/Deserialize enums as string #16086

@drkmn

Description

@drkmn

Please add the (optional) ability to serialize/deserialize Enum values to/from (camelCased) string rather than numeric value. This functionality is available in Json.NET as well.

Several API's expose fixed "choice" values as string-like enumerations and with the current functionality we would be forced to map such values to a string and roll our own post-deserialization parse logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions