JsonReaderWriterFactory.CreateJsonWriter Method (Stream)

 

Creates an XmlDictionaryWriter that writes data encoded with JSON to a stream.

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

public static XmlDictionaryWriter CreateJsonWriter(
	Stream stream
)

Parameters

stream
Type: System.IO.Stream

The output Stream for the JSON writer.

Return Value

Type: System.Xml.XmlDictionaryWriter

An XmlDictionaryWriter that writes data encoded with JSON to the stream based on an XML Infoset.

The default character encoding is UTF-8. When the writer is closed, the stream is closed as well.

.NET Framework
Available since 3.5
Silverlight
Available since 2.0
Return to top
Show: