1
JSON Utility Change History
2
===========================
22
* Remove indirect `eval()`. [Ticket #2530295]
32
* Convert parse input to a string before processing.
34
* `eval()` now referenced indirectly to allow for better compression.
36
* `dateToString` deprecated; use a `replacer`. A Date function extension is
47
* useNative___ disabled for browsers with *very* broken native APIs
50
* Assumption of `window` removed to support browser-less environment.
55
* Leverages native `JSON.stringify` if available.
57
* Added `Y.JSON.useNativeParse` and `useNativeStringify` properties that can
58
be set to `false` to use the JavaScript implementations. Use these if your
59
use case triggers an edge-case bug in one of the native implementations.
60
Hopefully these will be unnecessary in a few minor versions of the A-grade
63
* Added support for `toJSON()` methods on objects being stringified.
65
* Moved Date stringification before replacer to be in accordance with ES5.
70
* Leverages native `JSON.parse` if available.
72
* Stringify API change. Third argument changed from depth control to indent
73
(Per the ECMA 5 spec).
75
* Stringify now throws an `Error` if the object has cyclical references
76
(Per the ECMA 5 spec).
78
* Restructured `stringify()` to leverage `Y.Lang.type`.