.NET Framework Class Library for Silverlight
JsonReaderWriterFactory Class

Produces instances of XmlDictionaryReader that can read data encoded with JavaScript Object Notation (JSON) from a stream or buffer and map it to an XML Infoset, and produces instances of XmlDictionaryWriter that can map an XML Infoset to JSON and write JSON-encoded data to a stream.

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

Visual Basic (Declaration)
Public NotInheritable Class JsonReaderWriterFactory
Visual Basic (Usage)
You do not need to declare an instance of a static class in order to access its members.
C#
public static class JsonReaderWriterFactory
Remarks

Silverlight version 3 processes JSON messages using a mapping between JSON data and the XML Infoset. Normally, this mapping is hidden from view. However, in some advanced scenarios it might be necessary to manually convert between JSON and XML. In this case, the JsonReaderWriterFactory class can be used to create the necessary XML readers and writers. Note that not every XML Infoset element can be mapped to JSON.

For more information about

mapping, see Mapping between JSON and XML.
Inheritance Hierarchy

System..::.Object
  System.Runtime.Serialization.Json..::.JsonReaderWriterFactory
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Tags :


Page view tracker