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 Methods
| Method | Defined by |
| |
[static]
Decodes a JSON string into a native object.
| JSON |
| |
[static]
Encodes a object into a JSON string.
| JSON |
public static function decode(s:String):Object
Decodes a JSON string into a native object.
Parameters
| s:String — The JSON string representing the object
|
Returns
| Object — 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
|
Copyright © 2004-2006 Adobe Macromedia LLC Software and its licensors. All rights reserved.
Fri May 19 2006, 9:38 AM GMT-07:00