Serializes and deserializes objects into and from the JSON format.
The JsonSerializer enables you to control how objects are encoded into JSON.
| C# | Visual Basic | Visual C++ |
public class JsonSerializer
Public Class JsonSerializer
public ref class JsonSerializer
| All Members | Constructors | Methods | Properties | Events | |
| Icon | Member | Description |
|---|---|---|
| JsonSerializer()()() |
Initializes a new instance of the JsonSerializer class.
| |
| Binder |
Gets or sets the SerializationBinder used by the serializer when resolving type names.
| |
| ConstructorHandling |
Gets or sets how constructors are used during deserialization.
| |
| ContractResolver |
Gets or sets the contract resolver used by the serializer when
serializing .NET objects to JSON and vice versa.
| |
| Converters |
Gets a collection JsonConverter that will be used during serialization.
| |
| Create(JsonSerializerSettings) |
Creates a new JsonSerializer instance using the specified JsonSerializerSettings.
| |
| DefaultValueHandling |
Get or set how null default are handled during serialization and deserialization.
| |
| Deserialize(JsonReader) |
Deserializes the Json structure contained by the specified JsonReader.
| |
| Deserialize(TextReader, Type) |
Deserializes the Json structure contained by the specified StringReader
into an instance of the specified type.
| |
| Deserialize<(Of <(T>)>)(JsonReader) |
Deserializes the Json structure contained by the specified JsonReader
into an instance of the specified type.
| |
| Deserialize(JsonReader, Type) |
Deserializes the Json structure contained by the specified JsonReader
into an instance of the specified type.
| |
| Equals(Object) | (Inherited from Object.) | |
| Error |
Occurs when the JsonSerializer errors during serialization and deserialization.
| |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| MissingMemberHandling |
Get or set how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization.
| |
| NullValueHandling |
Get or set how null values are handled during serialization and deserialization.
| |
| ObjectCreationHandling |
Gets or sets how objects are created during deserialization.
| |
| Populate(TextReader, Object) |
Populates the JSON values onto the target object.
| |
| Populate(JsonReader, Object) |
Populates the JSON values onto the target object.
| |
| PreserveReferencesHandling |
Gets or sets how object references are preserved by the serializer.
| |
| ReferenceLoopHandling |
Get or set how reference loops (e.g. a class referencing itself) is handled.
| |
| ReferenceResolver |
Gets or sets the IReferenceResolver used by the serializer when resolving references.
| |
| Serialize(TextWriter, Object) |
Serializes the specified Object and writes the Json structure
to a Stream using the specified TextWriter.
| |
| Serialize(JsonWriter, Object) |
Serializes the specified Object and writes the Json structure
to a Stream using the specified JsonWriter.
| |
| ToString()()() | (Inherited from Object.) | |
| TypeNameHandling |
Gets or sets how type name writing and reading is handled by the serializer.
|
| Object | |
| JsonSerializer | |