Serializes objects to the JavaScript Object Notation (JSON) and deserializes JSON data to objects.
| C# | Visual Basic |
public sealed class DataContractJsonSerializer
Public NotInheritable Class DataContractJsonSerializer
| All Members | Constructors | Methods | |||
| Icon | Member | Description |
|---|---|---|
| DataContractJsonSerializer(Type) |
Initializes a new instance of the DataContractJsonSerializer class to serialize or deserialize an object of the specified type.
| |
| DataContractJsonSerializer(Type, IEnumerable<(Of <(Type>)>)) |
Initializes a new instance of the DataContractJsonSerializer class to serialize or deserialize an object of the specified type, with a collection of known types that may be present in the object graph.
| |
| 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.) | |
| GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| ReadObject(Stream) |
Deserializes JSON (JavaScript Object Notation) data and returns the deserialized object.
| |
| ToString()()() | (Inherited from Object.) | |
| WriteObject(Stream, Object) |
Serializes an object to a JavaScript Object Notation (JSON) document.
|
| Object | |
| DataContractJsonSerializer | |