X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..HEAD:/docs/output/Ext.JSON.js diff --git a/docs/output/Ext.JSON.js b/docs/output/Ext.JSON.js index 669c3b87..5fd340bf 100644 --- a/docs/output/Ext.JSON.js +++ b/docs/output/Ext.JSON.js @@ -1,132 +1 @@ -Ext.data.JsonP.Ext_JSON({ - "tagname": "class", - "name": "Ext.JSON", - "doc": "

Modified version of Douglas Crockford\"s json.js that doesn\"t\nmess with the Object prototype\nhttp://www.json.org/js.html

\n", - "extends": null, - "mixins": [ - - ], - "alternateClassNames": [ - - ], - "xtype": null, - "author": null, - "docauthor": null, - "singleton": true, - "private": false, - "cfg": [ - - ], - "method": [ - { - "tagname": "method", - "name": "decode", - "member": "Ext.JSON", - "doc": "

Decodes (parses) a JSON string to an object. If the JSON is invalid, this function throws a SyntaxError unless the safe option is set.

\n", - "params": [ - { - "type": "String", - "name": "json", - "doc": "

The JSON string

\n", - "optional": false - }, - { - "type": "Boolean", - "name": "safe", - "doc": "

(optional) Whether to return null or throw an exception if the JSON is invalid.

\n", - "optional": true - } - ], - "return": { - "type": "Object", - "doc": "

The resulting object

\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": "

Encodes an Object, Array or other value

\n", - "params": [ - { - "type": "Mixed", - "name": "o", - "doc": "

The variable to encode

\n", - "optional": false - } - ], - "return": { - "type": "String", - "doc": "

The JSON string

\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/misc/JSON.js", - "linenr": 112, - "html_filename": "JSON3.html", - "href": "JSON3.html#Ext-JSON-method-encode", - "shortDoc": "

Encodes an Object, Array or other value

\n" - }, - { - "tagname": "method", - "name": "encodeDate", - "member": "Ext.JSON", - "doc": "

Encodes a Date. This returns the actual string which is inserted into the JSON string as the literal expression.\nThe returned value includes enclosing double quotation marks.

\n\n\n

The default return format is \"yyyy-mm-ddThh:mm:ss\".

\n\n\n

To override this:

\n\n\n
     Ext.JSON.encodeDate = function(d) {\n     return d.format('\"Y-m-d\"');\n     };\n     
\n\n", - "params": [ - { - "type": "Date", - "name": "d", - "doc": "

The Date to encode

\n", - "optional": false - } - ], - "return": { - "type": "String", - "doc": "

The string literal to use in a JSON string.

\n" - }, - "private": false, - "static": false, - "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/misc/JSON.js", - "linenr": 91, - "html_filename": "JSON3.html", - "href": "JSON3.html#Ext-JSON-method-encodeDate", - "shortDoc": "Encodes a Date. This returns the actual string which is inserted into the JSON string as the literal expression.\nThe ..." - } - ], - "property": [ - - ], - "event": [ - - ], - "filename": "/Users/nick/Projects/sencha/SDK/platform/core/src/misc/JSON.js", - "linenr": 1, - "html_filename": "JSON3.html", - "href": "JSON3.html#Ext-JSON", - "cssVar": [ - - ], - "cssMixin": [ - - ], - "component": false, - "superclasses": [ - - ], - "subclasses": [ - - ], - "mixedInto": [ - - ], - "allMixins": [ - - ] -}); \ No newline at end of file +Ext.data.JsonP.Ext_JSON({"tagname":"class","html":"

Files

Modified version of Douglas Crockford's JSON.js that doesn't\nmess with the Object prototype\nhttp://www.json.org/js.html

\n
Defined By

Methods

Decodes (parses) a JSON string to an object. ...

Decodes (parses) a JSON string to an object. If the JSON is invalid, this function throws a SyntaxError unless the safe option is set.

\n

Parameters

  • json : String

    The JSON string

    \n
  • safe : Boolean (optional)

    Whether to return null or throw an exception if the JSON is invalid.

    \n

Returns

Encodes an Object, Array or other value ...

Encodes an Object, Array or other value

\n

Parameters

  • o : Object

    The variable to encode

    \n

Returns

Encodes a Date. ...

Encodes a Date. This returns the actual string which is inserted into the JSON string as the literal expression.\nThe returned value includes enclosing double quotation marks.

\n\n\n

The default return format is \"yyyy-mm-ddThh:mm:ss\".

\n\n\n

To override this:

\n\n\n
Ext.JSON.encodeDate = function(d) {\n    return Ext.Date.format(d, '\"Y-m-d\"');\n};\n     
\n\n

Parameters

  • d : Date

    The Date to encode

    \n

Returns

  • String

    The string literal to use in a JSON string.

    \n
","allMixins":[],"meta":{},"requires":[],"deprecated":null,"extends":null,"inheritable":false,"static":false,"superclasses":[],"singleton":true,"code_type":"assignment","alias":null,"statics":{"property":[],"css_var":[],"css_mixin":[],"cfg":[],"method":[],"event":[]},"subclasses":[],"uses":[],"protected":false,"mixins":[],"members":{"property":[],"css_var":[],"css_mixin":[],"cfg":[],"method":[{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.JSON","template":false,"required":null,"protected":false,"name":"decode","id":"method-decode"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.JSON","template":false,"required":null,"protected":false,"name":"encode","id":"method-encode"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.JSON","template":false,"required":null,"protected":false,"name":"encodeDate","id":"method-encodeDate"}],"event":[]},"private":false,"component":false,"name":"Ext.JSON","alternateClassNames":[],"id":"class-Ext.JSON","mixedInto":[],"xtypes":{},"files":[{"href":"JSON3.html#Ext-JSON","filename":"JSON.js"}]}); \ No newline at end of file