X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..f5240829880f87e0cf581c6a296e436fdef0ef80:/docs/output/Ext.util.JSON.html diff --git a/docs/output/Ext.util.JSON.html b/docs/output/Ext.util.JSON.html index ce6f58fe..4358a1dc 100644 --- a/docs/output/Ext.util.JSON.html +++ b/docs/output/Ext.util.JSON.html @@ -1,7 +1,15 @@ -
Properties Methods Events Direct Link

Class Ext.util.JSON

Package:Ext.util
Defined In:JSON.js
Class:JSON
Extends:Object
Modified version of Douglas Crockford"s json.js that doesn"t +

Class Ext.util.JSON

Package:Ext.util
Defined In:JSON.js
Class:JSON
Extends:Object
Modified version of Douglas Crockford"s json.js that doesn"t mess with the Object prototype http://www.json.org/js.html

This class is a singleton and cannot be created directly.

Public Properties

This class has no public properties.

Public Methods

MethodDefined By

Public Events

This class has no public events.
\ No newline at end of file + 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
JSON encodeDateDate 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.util.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.
JSON

Public Events

This class has no public events.
\ No newline at end of file