X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/docs/api/Ext.JSON.html diff --git a/docs/api/Ext.JSON.html b/docs/api/Ext.JSON.html new file mode 100644 index 00000000..2c75142f --- /dev/null +++ b/docs/api/Ext.JSON.html @@ -0,0 +1,72 @@ +
Modified version of Douglas Crockford"s json.js that doesn"t +mess with the Object prototype +http://www.json.org/js.html
+Decodes (parses) a JSON string to an object. If the JSON is invalid, this function throws a SyntaxError unless the safe option is set.
+The JSON string
+(optional) Whether to return null or throw an exception if the JSON is invalid.
+The resulting object
+Encodes an Object, Array or other value
+Encodes an Object, Array or other value
+The variable to encode
+The JSON string
+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"');
+ };
+
+
+The Date to encode
+The string literal to use in a JSON string.
+