Skip to content

Regression in 4.8+ | no longer able to use camel case serializationΒ #135

@rjgotten

Description

@rjgotten

With the move to System.Text.Json in version 4.8+ it is no longer possible to configure requests for template models to be serialized with camel case conversion.

System.Text.Json does not have modifiable global default serializer settings like Newtonsoft.Json has and does not feature attribute-level control over the casing strategy. The only recourse to fix existing code is to painstakingly add hand-mapped [JsonProperty] remapping to camelcased names for each property on each transitively accessed model.

This is, frankly, an entirely shitty experience.
Update the library to support externally supplied serializer options, please.

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