.NET Framework Class Library
DataContractJsonSerializer..::.ReadObject Method

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

Overload List

  NameDescription
Public methodReadObject(Stream)Reads a document stream in the JSON (JavaScript Object Notation) format and returns the deserialized object. (Overrides XmlObjectSerializer..::.ReadObject(Stream).)
Public methodReadObject(XmlDictionaryReader)Reads the XML document mapped from JSON (JavaScript Object Notation) with an XmlDictionaryReader and returns the deserialized object. (Overrides XmlObjectSerializer..::.ReadObject(XmlDictionaryReader).)
Public methodReadObject(XmlReader)Reads the XML document mapped from JSON (JavaScript Object Notation) with an XmlReader and returns the deserialized object. (Overrides XmlObjectSerializer..::.ReadObject(XmlReader).)
Public methodReadObject(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).)
Public methodReadObject(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).)
Top
Remarks

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

See Also

Reference

Tags :


Page view tracker