Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 2.81 KB

Assorted.Utils.Serialization.JsonSerializer.md

File metadata and controls

55 lines (37 loc) · 2.81 KB

JsonSerializer Class

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.

Syntax

public class JsonSerializer : ISerializer

Constructors

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.

Fields

Field Description
DefaultSettings The default JSON serialization settings.

Properties

Property Description
Settings Gets the settings being used for JSON serialization.

Methods

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.

Thread Safety

Any public member of this type, either static or instance, is thread-safe.

See Also


This document is generated by DG.