| Package | com.esri.ags.utils |
| Class | public class JSONUtil |
| Inheritance | JSONUtil Object |
| Method | Defined By | ||
|---|---|---|---|
decode(string:String):Object [static]
Decodes a JSON string into a native object. | JSONUtil | ||
encode(object:Object):String [static]
Encodes an object into a JSON string. | JSONUtil | ||
| decode | () | method |
public static function decode(string:String):ObjectDecodes a JSON string into a native object.
Parameters
string:String — The JSON string representing the object.
|
Object — A native object.
|
Error — If input string cannot be parsed.
|
| encode | () | method |
public static function encode(object:Object):StringEncodes an object into a JSON string. This will call toJSON() on objects that implement IJSONSupport.
Parameters
object:Object — The object to create a JSON string for.
|
String — the JSON string representing the object.
|
See also