Namespace: Assorted.Utils.Serialization
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Implements: ISerializer
Inheritance: object→
JsonSerializer
Serializes and deserializes objects into and from JSON format.
public class JsonSerializer : ISerializer
Constructor | Description |
---|---|
JsonSerializer() | Initializes a new instance of JsonSerializer class with default settings. |
JsonSerializer(DataContractJsonSerializerSettings) | Initializes a new instance of JsonSerializer class with the specified settings. |
Field | Description |
---|---|
DefaultSettings | The default JSON serialization settings. |
Property | Description |
---|---|
Settings | Gets the settings being used for JSON serialization. |
Method | Description |
---|---|
Deserialize<T>(Stream) | Deserializes the JSON data contained by the specified System.IO.Stream . |
Deserialize<T>(string) | Converts the JSON representation of an object to an instance of that object. |
GetInternalSerializer<T>() | Creates an instance of System.Runtime.Serialization.Json.DataContractJsonSerializer class for the specified type. |
Serialize<T>(T) | Converts an object to its JSON representation. |
Serialize<T>(T, Stream) | Serializes a given object and writes the JSON data into the specified System.IO.Stream . |
Any public member of this type, either static or instance, is thread-safe.
This document is generated by DG.