JsonSerializer
Serializes and deserializes objects into and from the JSON format.
The JsonSerializer enables you to control how objects are encoded into JSON.
Gets or sets the SerializationBinder used by the serializer when resolving type names.
Gets or sets how constructors are used during deserialization.
Gets or sets the StreamingContext used by the serializer when invoking serialization callback methods.
Gets or sets the contract resolver used by the serializer when
serializing .NET objects to JSON and vice versa.
Gets a collection JsonConverter that will be used during serialization.
Get or set how null default are handled during serialization and deserialization.
Get or set how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization.
Get or set how null values are handled during serialization and deserialization.
Gets or sets how objects are created during deserialization.
Gets or sets how object references are preserved by the serializer.
Get or set how reference loops (e.g. a class referencing itself) is handled.
Gets or sets the IReferenceResolver used by the serializer when resolving references.
Gets or sets how a type name assembly is written and resolved by the serializer.
Gets or sets how type name writing and reading is handled by the serializer.
Occurs when the JsonSerializer errors during serialization and deserialization.
public JsonSerializer()
Initializes a new instance of the JsonSerializer class.
Creates a new JsonSerializer instance using the specified JsonSerializerSettings.
Deserializes the Json structure contained by the specified JsonReader.
Deserializes the Json structure contained by the specified StringReader
into an instance of the specified type.
Deserializes the Json structure contained by the specified JsonReader
into an instance of the specified type.
Deserializes the Json structure contained by the specified JsonReader
into an instance of the specified type.
Populates the JSON values onto the target object.
Populates the JSON values onto the target object.
Serializes the specified Object and writes the Json structure
to a Stream using the specified TextWriter.
Serializes the specified Object and writes the Json structure
to a Stream using the specified JsonWriter.