1 out of 1 rated this helpful Rate this topic

System.Runtime.Serialization.Json Namespace

The System.Runtime.Serialization namespace contains classes that can be used for serializing objects to JavaScript Object Notation (JSON) and deserializing objects from JSON.

Serialization is the process of converting an object or a graph of objects into a linear sequence of bytes for either storage or transmission to another location. Deserialization is the process of taking in stored information and recreating objects from it.

  Class Description
Public class DataContractJsonSerializer Serializes objects to the JavaScript Object Notation (JSON) and deserializes JSON data to objects. This class cannot be inherited.
Public class JsonReaderWriterFactory 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 instances of XmlDictionaryWriter that can map an XML Infoset to JSON and write JSON-encoded data to a stream.
  Interface Description
Public interface IXmlJsonReaderInitializer Specifies the interface for initializing a JavaScript Object Notation (JSON) reader when reusing them to read from a particular stream or buffer.
Public interface IXmlJsonWriterInitializer Specifies the interface for initializing a JavaScript Object Notation (JSON) writer when reusing them to write to a particular output stream.
Did you find this helpful?
(2000 characters remaining)
Community Content Add
Annotations FAQ
JSON Serializer Location
It seems that two references must be added to my 4.0 project in order to access the namespace...

  1. System.ServiceModel.Web (also for Windows Phone 7 users)
  2. System.Runtime.Serialization

 

Located in the System.ServiceModel.Web DLL
I wasted time this morning attempting to solve the reference for this namespace. I thought it was in the System.Runtime.Serialization DLL, it is not. It is in the System.ServiceModel.Web DLL.