Skip to content

System.Text.Json.JsonProperty allocated a string in WriteTo() #88767

@mwadams

Description

@mwadams

Description

System.Text.Json.JsonProperty.WriteTo() uses the Name property to write name and value.

This realises the property name as a string, causing an allocation.

It would be preferable to write the property name using the underlying JsonElement and avoid the allocation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions