Ext.data.JsonP.Ext_JSON({"mixins":[],"code_type":"assignment","inheritable":false,"component":false,"meta":{},"mixedInto":[],"uses":[],"aliases":{},"parentMixins":[],"superclasses":[],"members":{"event":[],"property":[],"css_var":[],"method":[{"meta":{},"owner":"Ext.JSON","tagname":"method","name":"decode","id":"method-decode"},{"meta":{},"owner":"Ext.JSON","tagname":"method","name":"encode","id":"method-encode"},{"meta":{},"owner":"Ext.JSON","tagname":"method","name":"encodeDate","id":"method-encodeDate"},{"meta":{},"owner":"Ext.JSON","tagname":"method","name":"encodeString","id":"method-encodeString"},{"meta":{},"owner":"Ext.JSON","tagname":"method","name":"encodeValue","id":"method-encodeValue"}],"css_mixin":[],"cfg":[]},"tagname":"class","extends":null,"html":"
Files
Modified version of Douglas Crockford's JSON.js that doesn't\nmess with the Object prototype.
\nDecodes (parses) a JSON string to an object. If the JSON is invalid, this function throws\na SyntaxError unless the safe option is set.
\nThe JSON string
\nTrue to return null, false to throw an exception if the JSON is invalid.
\nDefaults to: false
The resulting object
\nEncodes an Object, Array or other value.
\n\nIf the environment's native JSON encoding is not being used (Ext.USE_NATIVE_JSON is not set,\nor the environment does not support it), then ExtJS's encoding will be used. This allows the developer\nto add a toJSON
method to their classes which need serializing to return a valid JSON representation\nof the object.
The variable to encode
\nThe JSON string
\nEncodes a Date. This returns the actual string which is inserted into the JSON string as the literal\nexpression. The returned value includes enclosing double quotation marks.
\n\nThe default return format is \"yyyy-mm-ddThh:mm:ss\"
.
To override this:
\n\nExt.JSON.encodeDate = function(d) {\n return Ext.Date.format(d, '\"Y-m-d\"');\n};\n
\nThe Date to encode
\nThe string literal to use in a JSON string.
\nEncodes a String. This returns the actual string which is inserted into the JSON string as the literal\nexpression. The returned value includes enclosing double quotation marks.
\n\nTo override this:
\n\nExt.JSON.encodeString = function(s) {\n return 'Foo' + s;\n};\n
\nThe String to encode
\nThe string literal to use in a JSON string.
\nThe function which encode uses to encode all javascript values to their JSON representations\nwhen Ext.USE_NATIVE_JSON is false
.
This is made public so that it can be replaced with a custom implementation.
\nAny javascript value to be converted to its JSON representation
\nThe JSON representation of the passed value.
\n