X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/api/Ext.JSON.html?ds=sidebyside diff --git a/docs/api/Ext.JSON.html b/docs/api/Ext.JSON.html deleted file mode 100644 index 2c75142f..00000000 --- a/docs/api/Ext.JSON.html +++ /dev/null @@ -1,72 +0,0 @@ -Ext.JSON | Ext JS 4.0 Documentation -
For up to date documentation and features, visit -http://docs.sencha.com/ext-js/4-0

Sencha Documentation

- - - - - -

Modified version of Douglas Crockford"s json.js that doesn"t -mess with the Object prototype -http://www.json.org/js.html

-
Defined By

Methods

 
decode( -String json, [Boolean safe]) - : Object
Decodes (parses) a JSON string to an object. If the JSON is invalid, this function throws a SyntaxError unless the sa...

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

-

Parameters

  • json : String

    The JSON string

    -
  • safe : Boolean

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

    -

Returns

  • Object   

    The resulting object

    -
 
encode( -Mixed o) - : String

Encodes an Object, Array or other value

-

Encodes an Object, Array or other value

-

Parameters

  • o : Mixed

    The variable to encode

    -

Returns

  • String   

    The JSON string

    -
 
encodeDate( -Date d) - : String
Encodes a Date. This returns the actual string which is inserted into the JSON string as the literal expression. -The ...

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

- - -

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

- - -

To override this:

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

Parameters

  • d : Date

    The Date to encode

    -

Returns

  • String   

    The string literal to use in a JSON string.

    -
\ No newline at end of file