Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Text.​Json.​JsonNamingPolicy

Assembly: System.Text.Json

Inheritance: object → JsonNamingPolicy

Determines the naming policy used to convert a string-based name to another format, such as a camel-casing format.

Properties

public static JsonNamingPolicy
CamelCase
Gets the naming policy for camel-casing.
public static JsonNamingPolicy
KebabCaseLower
Gets the naming policy for lowercase kebab-casing.
public static JsonNamingPolicy
KebabCaseUpper
Gets the naming policy for uppercase kebab-casing.
public static JsonNamingPolicy
SnakeCaseLower
Gets the naming policy for lowercase snake-casing.
public static JsonNamingPolicy
SnakeCaseUpper
Gets the naming policy for uppercase snake-casing.

Methods

public string
ConvertName​(string name)
When overridden in a derived class, converts the specified name according to the policy.
Returns The converted name.
name The name to convert.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object