Class JsonSerializer

JSON Serialize helper

Inheritance
System.Object
JsonSerializer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Web.Console.Common
Assembly: Mediachase.WebConsoleLib.dll
Version: 10.8.0
Syntax
public class JsonSerializer

Constructors

JsonSerializer()

Declaration
public JsonSerializer()

Methods

Deserialize<T>(String)

Deserializes the specified json.

Declaration
public static T Deserialize<T>(string json)
Parameters
Type Name Description
System.String json

The json.

Returns
Type Description
T
Type Parameters
Name Description
T

IsSerializable(Object)

Determines whether the specified obj is serializable.

Declaration
public static bool IsSerializable(object obj)
Parameters
Type Name Description
System.Object obj

The obj.

Returns
Type Description
System.Boolean

true if the specified obj is serializable; otherwise, false.

Serialize(Object)

Serializes the specified obj.

Declaration
public static string Serialize(object obj)
Parameters
Type Name Description
System.Object obj

The obj.

Returns
Type Description
System.String