[Type] JSON

Part of: mobl
Inherits from: mobl::Dynamic

Represents JSON values.

Static methods

parse(s : String) : JSON

Parses a textual representation of JSON and turns it onto a JSON object.

Example:

var json = JSON.parse("{\"name\": \"Zef\"}");

stringify(o : Object) : String

Serializes an object to JSON.

Example:

JSON.stringify([1, 2, 3]) // -> "[1,2,3]"
mobl/json.txt · Last modified: 2013/10/01 02:28 (external edit)