Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / output / Ext.JSON.js
1 Ext.data.JsonP.Ext_JSON({
2   "tagname": "class",
3   "name": "Ext.JSON",
4   "doc": "<p>Modified version of Douglas Crockford\"s json.js that doesn\"t\nmess with the Object prototype\nhttp://www.json.org/js.html</p>\n",
5   "extends": null,
6   "mixins": [
7
8   ],
9   "alternateClassNames": [
10
11   ],
12   "xtype": null,
13   "author": null,
14   "docauthor": null,
15   "singleton": true,
16   "private": false,
17   "cfg": [
18
19   ],
20   "method": [
21     {
22       "tagname": "method",
23       "name": "decode",
24       "member": "Ext.JSON",
25       "doc": "<p>Decodes (parses) a JSON string to an object. If the JSON is invalid, this function throws a SyntaxError unless the safe option is set.</p>\n",
26       "params": [
27         {
28           "type": "String",
29           "name": "json",
30           "doc": "<p>The JSON string</p>\n",
31           "optional": false
32         },
33         {
34           "type": "Boolean",
35           "name": "safe",
36           "doc": "<p>(optional) Whether to return null or throw an exception if the JSON is invalid.</p>\n",
37           "optional": true
38         }
39       ],
40       "return": {
41         "type": "Object",
42         "doc": "<p>The resulting object</p>\n"
43       },
44       "private": false,
45       "static": false,
46       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/misc/JSON.js",
47       "linenr": 129,
48       "html_filename": "JSON3.html",
49       "href": "JSON3.html#Ext-JSON-method-decode",
50       "shortDoc": "Decodes (parses) a JSON string to an object. If the JSON is invalid, this function throws a SyntaxError unless the sa..."
51     },
52     {
53       "tagname": "method",
54       "name": "encode",
55       "member": "Ext.JSON",
56       "doc": "<p>Encodes an Object, Array or other value</p>\n",
57       "params": [
58         {
59           "type": "Mixed",
60           "name": "o",
61           "doc": "<p>The variable to encode</p>\n",
62           "optional": false
63         }
64       ],
65       "return": {
66         "type": "String",
67         "doc": "<p>The JSON string</p>\n"
68       },
69       "private": false,
70       "static": false,
71       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/misc/JSON.js",
72       "linenr": 112,
73       "html_filename": "JSON3.html",
74       "href": "JSON3.html#Ext-JSON-method-encode",
75       "shortDoc": "<p>Encodes an Object, Array or other value</p>\n"
76     },
77     {
78       "tagname": "method",
79       "name": "encodeDate",
80       "member": "Ext.JSON",
81       "doc": "<p>Encodes a Date. This returns the actual string which is inserted into the JSON string as the literal expression.\n<b>The returned value includes enclosing double quotation marks.</b></p>\n\n\n<p>The default return format is \"yyyy-mm-ddThh:mm:ss\".</p>\n\n\n<p>To override this:</p>\n\n\n<pre><code>     Ext.JSON.encodeDate = function(d) {\n     return d.format('\"Y-m-d\"');\n     };\n     </code></pre>\n\n",
82       "params": [
83         {
84           "type": "Date",
85           "name": "d",
86           "doc": "<p>The Date to encode</p>\n",
87           "optional": false
88         }
89       ],
90       "return": {
91         "type": "String",
92         "doc": "<p>The string literal to use in a JSON string.</p>\n"
93       },
94       "private": false,
95       "static": false,
96       "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/misc/JSON.js",
97       "linenr": 91,
98       "html_filename": "JSON3.html",
99       "href": "JSON3.html#Ext-JSON-method-encodeDate",
100       "shortDoc": "Encodes a Date. This returns the actual string which is inserted into the JSON string as the literal expression.\nThe ..."
101     }
102   ],
103   "property": [
104
105   ],
106   "event": [
107
108   ],
109   "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/misc/JSON.js",
110   "linenr": 1,
111   "html_filename": "JSON3.html",
112   "href": "JSON3.html#Ext-JSON",
113   "cssVar": [
114
115   ],
116   "cssMixin": [
117
118   ],
119   "component": false,
120   "superclasses": [
121
122   ],
123   "subclasses": [
124
125   ],
126   "mixedInto": [
127
128   ],
129   "allMixins": [
130
131   ]
132 });