Export (0) Print
Expand All

DataContractJsonSerializer.ReadObject Method

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

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

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

Show:
© 2014 Microsoft