System.Text.Json.Serialization
Namespace with 28 public types
Classes
JsonConstructorAttribute
When placed on a constructor, indicates that the constructor should be used to create instances of the type on deserialization.
JsonConverterAttribute
When placed on a property or type, specifies the converter type to use.
JsonExtensionDataAttribute
When placed on a property of type , 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
Indicates that the member should be included for serialization and deserialization.
JsonNumberHandlingAttribute
When placed on a type, property, or field, indicates what settings should be used when serializing or deserializing numbers.
JsonPropertyNameAttribute
Specifies the property name that is present in the JSON when serializing and deserializing. This overrides any naming policy specified by .
JsonPropertyOrderAttribute
Specifies the property order that is present in the JSON when serializing. Lower values are serialized first.
If the attribute is not specified, the default value is 0.
JsonSerializableAttribute
Instructs the System.Text.Json source generator to generate source code to help optimize performance when serializing and deserializing instances of the specified type and types in its object graph.
JsonSourceGenerationOptionsAttribute
Instructs the System.Text.Json source generator to assume the specified options will be used at run time via .
JsonStringEnumConverter
Converts enumeration values to and from strings.
ReferenceHandler`1
This class defines how the deals with references on serialization and deserialization.
Enumerations
JsonIgnoreCondition
Controls how the ignores properties on serialization and deserialization.
JsonKnownNamingPolicy
The to be used at run time.
JsonNumberHandling
Determines how handles numbers when serializing and deserializing.
JsonSourceGenerationMode
The generation mode for the System.Text.Json source generator.
JsonUnknownTypeHandling
Defines how deserializing a type declared as an is handled during deserialization.
Abstract Classes
JsonAttribute
Provides the base class for serialization attributes.
JsonConverter
Converts an object or value to or from JSON.
JsonConverter`1
Converts an object or value to or from JSON.
JsonConverterFactory
Supports converting several types by using a factory pattern.
JsonSerializerContext
Provides metadata about a set of types that is relevant to JSON serialization.
ReferenceHandler
This class defines how the deals with references on serialization and deserialization.
ReferenceResolver
This class defines how the deals with references on serialization and deserialization.
Defines the core behavior of preserving references on serialization and deserialization.
Interfaces
IJsonOnDeserialized
Specifies that the JSON type should have its method called after deserialization occurs.
IJsonOnDeserializing
Specifies that the type should have its method called before deserialization occurs.
IJsonOnSerialized
Specifies that the type should have its method called after serialization occurs.
IJsonOnSerializing
Specifies that the type should have its method called before serialization occurs.