This class provides encoding and decoding of the JSON format.
Example usage:
// create a JSON string from an internal object
JSON.encode( myObject );
// read a JSON string into an internal object
var myObject:Object = JSON.decode( jsonString );
public static function decode(s:String):*
Decodes a JSON string into a native object.
Parameters
| s:String — The JSON string representing the object
|
Returns
| * — A native object as specified by s
|
public static function encode(o:Object):String
Encodes a object into a JSON string.
Parameters
| o:Object — The object to create a JSON string for
|
Returns
| String — the JSON string representing o
|