45 lines
1.9 KiB
JSON
45 lines
1.9 KiB
JSON
JSON Utility - Release Notes
|
|
|
|
2.9.0
|
|
* parse() now coerces input to a string before processing (per spec).
|
|
|
|
2.8.0
|
|
* Refactored to be ECMA 5 spec compliant. This resulted in the following:
|
|
* Leverages browser native JSON parse and stringify if present
|
|
* Added JSON.useNativeParse and JSON.useNativeStringify boolean configs to
|
|
allow implementers to force the use of the JavaScript implementation.
|
|
These are defaulted to true when the current browser supports native
|
|
JSON. It is currently recommended to set useNativeStringify to false if
|
|
you need to use a replacer function.
|
|
* Removed object key sorting (per spec)
|
|
* Stringifying cyclical objects will now throw an error (per spec)
|
|
* Removed support for depth control (per spec)
|
|
* Tightened up JSON.stringToDate
|
|
* Renamed final regex _INVALID => _UNSAFE because the destructive regex
|
|
process is to detect unsafe input. It does not validate against JSON
|
|
syntax.
|
|
* Refactored stringify to match the implementation in YUI 3.
|
|
|
|
2.7.0
|
|
* No changes
|
|
|
|
2.6.0
|
|
* Security updates
|
|
* Architecture change to make lang.JSON object more durable
|
|
* stringify whitelist keys scrubbed for duplicates
|
|
* Object keys sorted in stringify
|
|
|
|
2.5.1
|
|
* Updated validation regex to address poor unicode escape treatment in FF
|
|
* Updated special characters RegExp
|
|
* Changed stringification to account for odd responses to typeof
|
|
|
|
2.5.0
|
|
* Restructured for customization and readability
|
|
* Extracted isValid method to test a JSON string
|
|
* Extracted dateToString method to allow overriding with custom serialization format
|
|
* Added stringToDate method to reconstitute Date instances from default JSON UTC date strings. Use this in a filter method passed to lang.JSON.parse
|
|
* fixed walk method so filters are properly applied
|
|
|
|
2.4.0
|
|
* Initial release
|