Обновлен: Ноябрь 2007
Serializes objects to the JavaScript Object Notation (JSON) and deserializes JSON data to objects. This class cannot be inherited.
Public NotInheritable Class DataContractJsonSerializer _ Inherits XmlObjectSerializer
Dim instance As DataContractJsonSerializer
public sealed class DataContractJsonSerializer : XmlObjectSerializer
public ref class DataContractJsonSerializer sealed : public 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.
If an error occurs during the serialization of an outgoing reply on the server or the reply operation throws an exception for some other reason, it may not get returned to the client as a fault.
Windows Vista, Windows XP с пакетом обновления 2 (SP2), Windows Server 2003