System.Text.Json.Serialization
Namespace with 38 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.
JsonDerivedTypeAttribute
When placed on a type declaration, indicates that the specified subtype should be opted into polymorphic serialization.
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.
JsonNumberEnumConverter`1
Converter to convert enums to and from numeric values.
JsonNumberHandlingAttribute
When placed on a type, property, or field, indicates what settings should be used when serializing or deserializing numbers.
JsonObjectCreationHandlingAttribute
Determines how deserialization handles object creation for fields or properties.
JsonPolymorphicAttribute
When placed on a type, indicates that the type should be serialized polymorphically.
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.
JsonRequiredAttribute
Indicates that the annotated member must bind to a JSON property on deserialization.
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.
JsonStringEnumConverter`1
Converter to convert enums to and from strings.
JsonUnmappedMemberHandlingAttribute
When placed on a type, determines the configuration for the specific type, overriding the global setting.
ReferenceHandler`1
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.
JsonObjectCreationHandling
Determines how deserialization will handle object creation for fields or properties.
JsonSourceGenerationMode
The generation mode for the System.Text.Json source generator.
JsonUnknownDerivedTypeHandling
Defines how objects of a derived runtime type that has not been explicitly declared for polymorphic serialization should be handled.
JsonUnknownTypeHandling
Defines how deserializing a type declared as an is handled during deserialization.
JsonUnmappedMemberHandling
Determines how handles JSON properties that cannot be mapped to a specific .NET member when deserializing object types.
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
Defines how the deals with references on serialization and deserialization.
ReferenceResolver
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.