CryEngine.Tools

Supportive functions for Serialization. More...

Static Public Member Functions

static string ToJSON (object o)
Converts an object to JSON. More...
static T FromJSON< T > (string content)
Parses a JSON string to generate an object of type T. More...
static object FromJSON (string content, Type t)
Parses a JSON string to generate an object of Type 't'. More...

Detailed Description

Supportive functions for Serialization.

Member Function Documentation

◆ FromJSON()

static object CryEngine.Tools.FromJSON ( string content,
Type t
)
inline
static

Parses a JSON string to generate an object of Type 't'.

Returns
The object.
Parameters
contentThe JSON description of the target Object.
tThe target type.

◆ FromJSON< T >()

static T CryEngine.Tools.FromJSON< T > ( string content)
inline
static

Parses a JSON string to generate an object of type T.

Returns
The object.
Parameters
contentThe JSON description of the target Object.
Template Parameters
TThe target type.

◆ ToJSON()

static string CryEngine.Tools.ToJSON ( object o)
inline
static

Converts an object to JSON.

Returns
JSON string.
Parameters
oTarget Object