DataContractJsonSerializer.WriteObject Method

 

Serializes an object to a JavaScript Object Notation (JSON) document.

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

NameDescription
System_CAPS_pubmethodWriteObject(Stream, Object)

Serializes a specified object to JavaScript Object Notation (JSON) data and writes the resulting JSON to a stream.(Overrides XmlObjectSerializer.WriteObject(Stream, Object).)

System_CAPS_pubmethodWriteObject(XmlDictionaryWriter, Object)

Serializes an object to XML that may be mapped to JavaScript Object Notation (JSON). Writes all the object data, including the starting XML element, content, and closing element, with an XmlDictionaryWriter.(Overrides XmlObjectSerializer.WriteObject(XmlDictionaryWriter, Object).)

System_CAPS_pubmethodWriteObject(XmlWriter, Object)

Serializes an object to XML that may be mapped to JavaScript Object Notation (JSON). Writes all the object data, including the starting XML element, content, and closing element, with an XmlWriter.(Overrides XmlObjectSerializer.WriteObject(XmlWriter, Object).)

Some overloads of this method deal with XML. These overloads are only intended for advanced scenarios when working with the XML/JSON mapping.

Return to top
Show: