Files
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 Error unless the safe option is set.
The JSON string.
Whether to return null
or throw an exception if the JSON is invalid.
The resulting object.
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 Ext.Date.format(d, '"Y-m-d"');
};
The Date to encode.
The string literal to use in a JSON string.