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 | ||
| Icon | Member | Description |
|---|---|---|
| JsonSerializer()()() |
Initializes a new instance of the JsonSerializer class.
| |
| Converters |
Gets a collection JsonConverter that will be used during serialization.
| |
| Deserialize(JsonReader) |
Deserializes the Json structure contained by the specified JsonReader.
| |
| Deserialize(JsonReader, Type) |
Deserializes the Json structure contained by the specified JsonReader
into an instance of the specified type.
| |
| Deserialize(StringReader, Type) |
Deserializes the Json structure contained by the specified StringReader
into an instance of the specified type.
| |
| Equals(Object) | (Inherited from Object.) | |
| 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.) | |
| GetSerializableMembers(Type) |
Gets the serializable members for the given Type.
| |
| 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.
| |
| ReferenceLoopHandling |
Get or set how reference loops (e.g. a class referencing itself) is handled.
| |
| 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.) |
| Object | |
| JsonSerializer | |