- {
- "type": "Boolean",
- "name": "safe",
- "doc": "<p>(optional) Whether to return null or throw an exception if the JSON is invalid.</p>\n",
- "optional": true
- }
- ],
- "return": {
- "type": "Object",
- "doc": "<p>The resulting object</p>\n"
- },
- "private": false,
- "static": false,
- "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/misc/JSON.js",
- "linenr": 129,
- "html_filename": "JSON3.html",
- "href": "JSON3.html#Ext-JSON-method-decode",
- "shortDoc": "Decodes (parses) a JSON string to an object. If the JSON is invalid, this function throws a SyntaxError unless the sa..."
- },
- {
- "tagname": "method",
- "name": "encode",
- "member": "Ext.JSON",
- "doc": "<p>Encodes an Object, Array or other value</p>\n",
- "params": [
- {
- "type": "Mixed",
- "name": "o",
- "doc": "<p>The variable to encode</p>\n",
- "optional": false
- }
- ],
- "return": {
- "type": "String",
- "doc": "<p>The JSON string</p>\n"