System.Text.Json.Serialization Namespace

The System.Text.Json.Serialization namespace contains classes that are used to customize and extend serialization and deserialization of objects into JSON formatted documents or streams, either via an attribute model or via type converters.

Classes

JsonAttribute

Provides the base class for serialization attributes.

JsonConstructorAttribute
JsonConverter

Converts an object or value to or from JSON.

JsonConverter<T>

Converts an object or value to or from JSON.

JsonConverterAttribute

When placed on a property or type, specifies the converter type to use.

JsonConverterFactory

Supports converting several types by using a factory pattern.

JsonExtensionDataAttribute

When placed on a property of type IDictionary<TKey,TValue>, any properties that do not have a matching member are added to that dictionary during deserialization and written during serialization.

JsonIgnoreAttribute

Prevents a property from being serialized or deserialized.

JsonIncludeAttribute
JsonPropertyNameAttribute

Specifies the property name that is present in the JSON when serializing and deserializing. This overrides any naming policy specified by JsonNamingPolicy.

JsonStringEnumConverter

Converts enumeration values to and from strings.

ReferenceHandling

Enums

JsonIgnoreCondition