Table of Contents

Class JsonSerializer2

Namespace
Shift.Common
Assembly
Shift.Common.dll
public class JsonSerializer2 : IJsonSerializerBase
Inheritance
JsonSerializer2
Implements
Inherited Members
Extension Methods

Constructors

JsonSerializer2()

public JsonSerializer2()

Methods

Deserialize<T>(string)

Returns a object deserialized from the input string.

public T Deserialize<T>(string value)

Parameters

value string

Returns

T

Type Parameters

T

Deserialize<T>(Type, string, JsonPurpose, bool, string[])

Returns a object of the desired type, deserialized from the input string.

public T Deserialize<T>(Type type, string value, JsonPurpose mode, bool disablePropertyConverters = false, string[] excludeProperties = null)

Parameters

type Type
value string
mode JsonPurpose
disablePropertyConverters bool

If true, the default JSON property converter is removed from every property of the object before it is deserialized.

excludeProperties string[]

Returns

T

Type Parameters

T

Serialize(object, JsonPurpose, bool, string[])

Returns the serialized string value for an object, excluding properties in the exclusions array.

public string Serialize(object value, JsonPurpose mode, bool disablePropertyConverters = false, string[] excludeProperties = null)

Parameters

value object
mode JsonPurpose
disablePropertyConverters bool

If true, the default JSON property converter is removed from every property of the object before it is serialized.

excludeProperties string[]

Returns

string

Serialize<T>(T)

Returns the serialized string value for an object of a specific type.

public string Serialize<T>(T value)

Parameters

value T

Returns

string

Type Parameters

T