Class: tinymce.util.JSON

# tinymce.util.JSON

Namespace | tinymce.util
Class | JSON
Type | Singleton

JSON parser and serializer class.

## Public Methods

Method | Defined By
--- | ---
parse(s:string):Object [static] Unserializes/parses the specified JSON string into a object. | JSON
serialize(o:Object):string [static] Serializes the specified object as a JSON string. | JSON

## Method details

### parsemethod

`public static function parse(s:string):Object`
Unserializes/parses the specified JSON string into a object.

#### Parameters

s:string | JSON String to parse into a JavaScript object.

#### Returns

Object - Object from input JSON string or undefined if it failed.

### serializemethod

`public static function serialize(o:Object):string`
Serializes the specified object as a JSON string.

#### Parameters

o:Object | Object to serialize as a JSON string.

#### Returns

string - JSON string serialized from input.