DataContractJsonSerializer Members

DataContractJsonSerializer Members

.NET Framework 3.5

Serializes objects to the JavaScript Object Notation (JSON) and deserializes JSON data to objects. This class cannot be inherited.

The DataContractJsonSerializer type exposes the following members.

Public method DataContractJsonSerializer Overloaded. Initializes a new instance of the DataContractJsonSerializer class.

Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method IsStartObject Overloaded. Gets a value that specifies whether the serializer can read the object.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReadObject Overloaded. Deserializes JSON (JavaScript Object Notation) data and returns the deserialized object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method WriteEndObject Overloaded. Writes the closing XML element to an XML document that can be mapped to JavaScript Object Notation (JSON).
Public method WriteObject Overloaded. Serializes an object to a JavaScript Object Notation (JSON) document.
Public method WriteObjectContent Overloaded. Writes the content of an object to XML that may be mapped to JavaScript Object Notation (JSON)., without writing the wrapping element.
Public method WriteStartObject Overloaded. Writes the opening XML element for serializing an object to XML that can be mapped to JavaScript Object Notation (JSON).

Public property DataContractSurrogate Gets a surrogate type that is currently active for a given IDataContractSurrogate instance. Surrogates can extend the serialization or deserialization process.
Public property IgnoreExtensionDataObject Gets a value that specifies whether unknown data is ignored on deserialization and whether the IExtensibleDataObject interface is ignored on serialization.
Public property KnownTypes Gets a collection of types that may be present in the object graph serialized using this instance of the DataContractJsonSerializer.
Public property MaxItemsInObjectGraph Gets the maximum number of items in an object graph that the serializer serializes or deserializes in one read or write call.

Community Additions

© 2016 Microsoft