2 |
aperonnet |
1 |
<div class="body-wrap">
|
|
|
2 |
<div class="top-tools">
|
|
|
3 |
<a class="inner-link" href="#Ext.util.JSON-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
|
|
|
4 |
<a class="inner-link" href="#Ext.util.JSON-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
|
|
|
5 |
<a class="inner-link" href="#Ext.util.JSON-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
|
|
|
6 |
<a class="bookmark" href="../docs/?class=Ext.util.JSON"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
|
|
|
7 |
</div>
|
|
|
8 |
<h1>Class Ext.util.JSON</h1>
|
|
|
9 |
<table cellspacing="0">
|
|
|
10 |
<tr><td class="label">Package:</td><td class="hd-info">Ext.util</td></tr>
|
|
|
11 |
<tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/util/JSON.js" target="_blank">JSON.js</a></td></tr>
|
|
|
12 |
<tr><td class="label">Class:</td><td class="hd-info">JSON</td></tr>
|
|
|
13 |
<tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
|
|
|
14 |
</table>
|
|
|
15 |
<div class="description">
|
|
|
16 |
Modified version of Douglas Crockford"s json.js that doesn"t
|
|
|
17 |
mess with the Object prototype
|
|
|
18 |
http://www.json.org/js.html<br><br><i>This class is a singleton and cannot be created directly.</i> </div>
|
|
|
19 |
|
|
|
20 |
<div class="hr"></div>
|
|
|
21 |
<a id="Ext.util.JSON-props"></a>
|
|
|
22 |
<h2>Public Properties</h2>
|
|
|
23 |
<div class="no-members">This class has no public properties.</div> <a id="Ext.util.JSON-methods"></a>
|
|
|
24 |
<h2>Public Methods</h2>
|
|
|
25 |
<table cellspacing="0" class="member-table">
|
|
|
26 |
<tr>
|
|
|
27 |
<th class="sig-header" colspan="2">Method</th>
|
|
|
28 |
<th class="msource-header">Defined By</th>
|
|
|
29 |
</tr>
|
|
|
30 |
<tr class="method-row expandable">
|
|
|
31 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
32 |
<td class="sig">
|
|
|
33 |
<a id="Ext.util.JSON-decode"></a>
|
|
|
34 |
<b>decode</b>( <code>String json</code> ) : Object <div class="mdesc">
|
|
|
35 |
<div class="short">Decodes (parses) a JSON string to an object. If the JSON is invalid, this function throws a SyntaxError.</div>
|
|
|
36 |
<div class="long">
|
|
|
37 |
Decodes (parses) a JSON string to an object. If the JSON is invalid, this function throws a SyntaxError. <div class="mdetail-params">
|
|
|
38 |
<strong>Parameters:</strong>
|
|
|
39 |
<ul><li><code>json</code> : String<div class="sub-desc">The JSON string</div></li> </ul>
|
|
|
40 |
<strong>Returns:</strong>
|
|
|
41 |
<ul>
|
|
|
42 |
<li><code>Object</code><div class="sub-desc">The resulting object</div></li>
|
|
|
43 |
</ul>
|
|
|
44 |
</div>
|
|
|
45 |
</div>
|
|
|
46 |
</div>
|
|
|
47 |
</td>
|
|
|
48 |
<td class="msource">JSON</td>
|
|
|
49 |
</tr>
|
|
|
50 |
<tr class="method-row alt expandable">
|
|
|
51 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
52 |
<td class="sig">
|
|
|
53 |
<a id="Ext.util.JSON-encode"></a>
|
|
|
54 |
<b>encode</b>( <code>Mixed o</code> ) : String <div class="mdesc">
|
|
|
55 |
<div class="short">Encodes an Object, Array or other value</div>
|
|
|
56 |
<div class="long">
|
|
|
57 |
Encodes an Object, Array or other value <div class="mdetail-params">
|
|
|
58 |
<strong>Parameters:</strong>
|
|
|
59 |
<ul><li><code>o</code> : Mixed<div class="sub-desc">The variable to encode</div></li> </ul>
|
|
|
60 |
<strong>Returns:</strong>
|
|
|
61 |
<ul>
|
|
|
62 |
<li><code>String</code><div class="sub-desc">The JSON string</div></li>
|
|
|
63 |
</ul>
|
|
|
64 |
</div>
|
|
|
65 |
</div>
|
|
|
66 |
</div>
|
|
|
67 |
</td>
|
|
|
68 |
<td class="msource">JSON</td>
|
|
|
69 |
</tr>
|
|
|
70 |
</table>
|
|
|
71 |
<a id="Ext.util.JSON-events"></a>
|
|
|
72 |
<h2>Public Events</h2>
|
|
|
73 |
<div class="no-members">This class has no public events.</div>
|
|
|
74 |
</div>
|