JsonReaderWriterFactory Class
This page is specific to:Microsoft Version:3.5Silverlight 34.0
.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

'Usage

You do not need to declare an instance of a static class in order to access its members.

'Declaration

Public NotInheritable 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

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View