C# Class MonoGdx.Utils.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 floats.
ファイルを表示 Open project: jaquadro/MonoGdx

Public Methods

Method Description
Deserialize ( TextReader json ) : object

Parses the string json into a value

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 ( TextReader json ) : object
json TextReader A JSON string.
return object

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