Namespace | tinymce.util |
Class | JSON |
Type | Singleton |
JSON parser and serializer class.
Example
Public Methods
Method | Defined By |
---|---|
parse(s:string):Object : [static] Unserializes/parses the specified JSON string into a object. | JSON |
serialize(obj:Object, quote:String):string : [static] Serializes the specified object as a JSON string. | JSON |
Method details
parse
public static function parse(s:string):Object
Unserializes/parses the specified JSON string into a object.
Parameters
Param | Detail |
---|---|
s:string | JSON String to parse into a JavaScript object. |
Returns
Object - Object from input JSON string or undefined if it failed.
serialize
public static function serialize(obj:Object, quote:String):string
Serializes the specified object as a JSON string.
Parameters
Param | Detail |
---|---|
obj:Object | Object to serialize as a JSON string. |
quote:String | Optional quote string defaults to ". |
Returns
string - JSON string serialized from input.
Was this article helpful? Yes - No
Well, that's awkward . Would you mind opening an issue or helping us out?
Thanks for the feedback!
Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.