DataContractJsonSerializer.ReadObject Method

 

Deserializes JSON (JavaScript Object Notation) data and returns the deserialized object.

Namespace:   System.Runtime.Serialization.Json
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

NameDescription
System_CAPS_pubmethodReadObject(Stream)

Reads a document stream in the JSON (JavaScript Object Notation) format and returns the deserialized object.(Overrides XmlObjectSerializer.ReadObject(Stream).)

System_CAPS_pubmethodReadObject(XmlDictionaryReader)

Reads the XML document mapped from JSON (JavaScript Object Notation) with an XmlDictionaryReader and returns the deserialized object.(Overrides XmlObjectSerializer.ReadObject(XmlDictionaryReader).)

System_CAPS_pubmethodReadObject(XmlDictionaryReader, Boolean)

Reads the XML document mapped from JSON with an XmlDictionaryReader and returns the deserialized object; it also enables you to specify whether the serializer should verify that it is positioned on an appropriate element before attempting to deserialize.(Overrides XmlObjectSerializer.ReadObject(XmlDictionaryReader, Boolean).)

System_CAPS_pubmethodReadObject(XmlReader)

Reads the XML document mapped from JSON (JavaScript Object Notation) with an XmlReader and returns the deserialized object.(Overrides XmlObjectSerializer.ReadObject(XmlReader).)

System_CAPS_pubmethodReadObject(XmlReader, Boolean)

Reads an XML document mapped from JSON with an XmlReader and returns the deserialized object; it also enables you to specify whether the serializer should verify that it is positioned on an appropriate element before attempting to deserialize.(Overrides XmlObjectSerializer.ReadObject(XmlReader, Boolean).)

Some of the overloads deal with XML data mapped from JSON instead of JSON data directly. These are intended for advanced scenarios only.

Return to top
Show: