tinymce.util.JSON

JSON parser and serializer class.

Examples

// JSON parse a string into an object
var obj = tinymce.util.JSON.parse(somestring);

// JSON serialize a object into an string
var str = tinymce.util.JSON.serialize(obj);

Methods

name summary defined by
parse() Unserializes/parses the specified JSON string into a object. tinymce.util.JSON
serialize() Serializes the specified object as a JSON string. tinymce.util.JSON

Methods

parse

parse(s:string):Object

Unserializes/parses the specified JSON string into a object.

Parameters
Return value

serialize

serialize(obj:Object, quote:String):string

Serializes the specified object as a JSON string.

Parameters
Return value

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.