Skip to content

JsonSerializerOptions.DictionaryKeyPolicy ignores JsonNamingPolicy.CamelCase #12180

@dodyg

Description

@dodyg

Describe the bug

JsonSerializer.ToString() ignores does not convert PascalCase dictionary keys into camelCase although JsonSerializerOptions.DictionaryKeyPolicy is set to JsonNamingPolicy.CamelCase

To Reproduce

ASP.NET Core 3 Preview 6

Expected behavior

Dictionary Keys converted to camelCase on serialization

json-serializer-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: DuplicateResolved as a duplicate of another issueExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions