Table of Contents

Class JsonHelper

Namespace
Dynamicweb.Core.Helpers
Assembly
Dynamicweb.Core.dll
The JsonHelper class provides methods that can serialize and deserialize objects to and from Json
public class JsonHelper
Inheritance
JsonHelper
Inherited Members

Methods

Deserialize<T>(string)

Deserializes the specified data back to the specified object type.
public static T Deserialize<T>(string data)

Parameters

data string
The data to deserialize.

Returns

T
The deserialized object of type T

Type Parameters

T

Serialize<T>(T)

Serializes the specified item to json format.
public static string Serialize<T>(T item)

Parameters

item T
The item to serialize.

Returns

string
A string representing the serialized object

Type Parameters

T
To top