Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / docs / output / Ext.JSON.js
1 Ext.data.JsonP.Ext_JSON({
2   "allMixins": [
3
4   ],
5   "deprecated": null,
6   "docauthor": null,
7   "members": {
8     "cfg": [
9
10     ],
11     "method": [
12       {
13         "deprecated": null,
14         "alias": null,
15         "protected": false,
16         "tagname": "method",
17         "href": "JSON.html#Ext-JSON-method-decode",
18         "shortDoc": "Decodes (parses) a JSON string to an object. ...",
19         "static": false,
20         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/misc/JSON.js",
21         "private": false,
22         "params": [
23           {
24             "type": "String",
25             "optional": false,
26             "doc": "<p>The JSON string</p>\n",
27             "name": "json"
28           },
29           {
30             "type": "Boolean",
31             "optional": true,
32             "doc": "<p>(optional) Whether to return null or throw an exception if the JSON is invalid.</p>\n",
33             "name": "safe"
34           }
35         ],
36         "name": "decode",
37         "owner": "Ext.JSON",
38         "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",
39         "linenr": 129,
40         "return": {
41           "type": "Object",
42           "doc": "<p>The resulting object</p>\n"
43         },
44         "html_filename": "JSON.html"
45       },
46       {
47         "deprecated": null,
48         "alias": null,
49         "protected": false,
50         "tagname": "method",
51         "href": "JSON.html#Ext-JSON-method-encode",
52         "shortDoc": "Encodes an Object, Array or other value ...",
53         "static": false,
54         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/misc/JSON.js",
55         "private": false,
56         "params": [
57           {
58             "type": "Mixed",
59             "optional": false,
60             "doc": "<p>The variable to encode</p>\n",
61             "name": "o"
62           }
63         ],
64         "name": "encode",
65         "owner": "Ext.JSON",
66         "doc": "<p>Encodes an Object, Array or other value</p>\n",
67         "linenr": 112,
68         "return": {
69           "type": "String",
70           "doc": "<p>The JSON string</p>\n"
71         },
72         "html_filename": "JSON.html"
73       },
74       {
75         "deprecated": null,
76         "alias": null,
77         "protected": false,
78         "tagname": "method",
79         "href": "JSON.html#Ext-JSON-method-encodeDate",
80         "shortDoc": "Encodes a Date. ...",
81         "static": false,
82         "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/misc/JSON.js",
83         "private": false,
84         "params": [
85           {
86             "type": "Date",
87             "optional": false,
88             "doc": "<p>The Date to encode</p>\n",
89             "name": "d"
90           }
91         ],
92         "name": "encodeDate",
93         "owner": "Ext.JSON",
94         "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",
95         "linenr": 91,
96         "return": {
97           "type": "String",
98           "doc": "<p>The string literal to use in a JSON string.</p>\n"
99         },
100         "html_filename": "JSON.html"
101       }
102     ],
103     "property": [
104
105     ],
106     "cssVar": [
107
108     ],
109     "cssMixin": [
110
111     ],
112     "event": [
113
114     ]
115   },
116   "singleton": true,
117   "alias": null,
118   "superclasses": [
119
120   ],
121   "protected": false,
122   "tagname": "class",
123   "mixins": [
124
125   ],
126   "href": "JSON.html#Ext-JSON",
127   "subclasses": [
128
129   ],
130   "static": false,
131   "author": null,
132   "component": false,
133   "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/misc/JSON.js",
134   "private": false,
135   "alternateClassNames": [
136
137   ],
138   "name": "Ext.JSON",
139   "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",
140   "mixedInto": [
141
142   ],
143   "linenr": 1,
144   "xtypes": [
145
146   ],
147   "html_filename": "JSON.html",
148   "extends": null
149 });