public static function decode(string:String):*
Decodes a JSON string into a Flex object.
Parameters
| string:String — The JSON string representing the object.
|
ReturnsThrows | Error — If input string cannot be parsed.
|
public static function encode(object:Object):String
Encodes a Flex object into a JSON string.
Note that for a graphic, convertToJSON will convert attributes and geometry, but not the symbol.
Parameters
| object:Object — The object to create a JSON string for.
|
Returns | String — the JSON string representing the object.
|