<PackageReference Include="System.Text.Json" Version="9.0.3" />

JsonNamingPolicy

public abstract class JsonNamingPolicy
Determines the naming policy used to convert a string-based name to another format, such as a camel-casing format.
public static JsonNamingPolicy CamelCase { get; }

Gets the naming policy for camel-casing.

public static JsonNamingPolicy KebabCaseLower { get; }

Gets the naming policy for lowercase kebab-casing.

public static JsonNamingPolicy KebabCaseUpper { get; }

Gets the naming policy for uppercase kebab-casing.

public static JsonNamingPolicy SnakeCaseLower { get; }

Gets the naming policy for lowercase snake-casing.

public static JsonNamingPolicy SnakeCaseUpper { get; }

Gets the naming policy for uppercase snake-casing.

protected JsonNamingPolicy()

Initializes a new instance of JsonNamingPolicy.

public abstract string ConvertName(string name)

When overridden in a derived class, converts the specified name according to the policy.