0 results found

tinymce.util.JSON

Contribute to this page
Namespacetinymce.util
ClassJSON
TypeSingleton

JSON parser and serializer class.

Example

Public Methods

MethodDefined 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

ParamDetail
s:stringJSON 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

ParamDetail
obj:ObjectObject to serialize as a JSON string.
quote:StringOptional quote string defaults to ".

Returns
string - JSON string serialized from input.

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.