X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.util.JSON.html diff --git a/docs/output/Ext.util.JSON.html b/docs/output/Ext.util.JSON.html index ce6f58fe..2faa6433 100644 --- a/docs/output/Ext.util.JSON.html +++ b/docs/output/Ext.util.JSON.html @@ -1,7 +1,15 @@ -
Package: | Ext.util |
Defined In: | JSON.js |
Class: | JSON |
Extends: | Object |
Package: | Ext.util |
Defined In: | JSON.js |
Class: | JSON |
Extends: | Object |
Method | Defined By | |
---|---|---|
decode( String json )
:
ObjectDecodes (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 | |
encode( Mixed o )
:
- StringEncodes an Object, Array or other value Encodes an Object, Array or other value Parameters:
| JSON |
o
: MixedString
Date d
)
+ :
+ StringEncodes 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"');
+};
d
: DateString