Table of Contents

Interface IJsonSerializer

Namespace
JWT
Assembly
Coherence.JWT.dll

Provides JSON Serialize and Deserialize. Allows custom serializers used.

public interface IJsonSerializer
Extension Methods

Methods

Deserialize(Type, string)

Deserializes a JSON string to an object of specified type.

object Deserialize(Type type, string json)

Parameters

type Type

The type of the object to deserialize to.

json string

The JSON string deserialize.

Returns

object

Strongly-typed object.

Serialize(object)

Serializes an object to a JSON string.

string Serialize(object obj)

Parameters

obj object

The object to serialize.

Returns

string

JSON string