Udostępnij za pośrednictwem


System.Runtime.Serialization.Json Namespace

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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 re-creating objects from it.

Classes

  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 produces instances of XmlDictionaryWriter that can map an XML Infoset to JSON and write JSON-encoded data to a stream.