DataContractJsonSerializer Class

[Note: This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Serializes objects to the JavaScript Object Notation (JSON) and deserializes JSON data to objects. This class cannot be inherited.

Namespace: System.Runtime.Serialization
Assembly:   System.ServiceModel.Web (in System.ServiceModel.Web.dll)

public sealed class DataContractJsonSerializer : XmlObjectSerializer
public final class DataContractJsonSerializer extends XmlObjectSerializer
public final class DataContractJsonSerializer extends XmlObjectSerializer

Use the DataContractJsonSerializer class to serialize instances of a type into a JSON document and to deserialize a JSON document into an instance of a type. For example, you can create a type named Person with properties that contain essential data, such as a name and address. You can then create and manipulate an instance of the Person class and write all of its property values in a JSON document for later retrieval. This JSON document can later be deserialized into the Person class or another class with an equivalent data contract.

System..::Object
  System.Runtime.Serialization..::XmlObjectSerializer
    System.Runtime.Serialization..::DataContractJsonSerializer

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

Windows Vista, Windows XP SP2, Windows Server 2003

The .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.5, 3.0
Show: