C# Class AssetBundleGraph.Json

This class encodes and decodes JSON strings. Spec. details, see http://www.json.org/ JSON uses Arrays and Objects. These correspond here to the datatypes IList and IDictionary. All numbers are parsed to doubles.
Mostrar archivo Open project: unity3d-jp/AssetGraph

Public Methods

Method Description
Deserialize ( string json ) : object

Parses the string json into a value

Prettify ( string sourceJson ) : string
Serialize ( object obj ) : string

Converts a IDictionary / IList object or a simple type (string, int, etc.) into a JSON string

Method Details

Deserialize() public static method

Parses the string json into a value
public static Deserialize ( string json ) : object
json string A JSON string.
return object

Prettify() public static method

public static Prettify ( string sourceJson ) : string
sourceJson string
return string

Serialize() public static method

Converts a IDictionary / IList object or a simple type (string, int, etc.) into a JSON string
public static Serialize ( object obj ) : string
obj object
return string