|
0
|
1 |
The JSON Utility |
|
|
2 |
Provides static methods to serialize objects to JSON strings and |
|
|
3 |
deserialize objects from JSON strings. |
|
|
4 |
|
|
|
5 |
Three modules are available: |
|
|
6 |
json - Both parse and stringify functionality |
|
|
7 |
json-parse - Parse valid JSON strings into JavaScript objects |
|
|
8 |
json-stringify - Serialize JavaScipt objects into valid JSON strings |
|
|
9 |
|
|
|
10 |
3.0.0 |
|
|
11 |
* Leverages native JSON.stringify if available |
|
|
12 |
* Added Y.JSON.useNativeParse and useNativeStringify properties that can be |
|
|
13 |
set to false to use the JavaScript implementations. Use these if your |
|
|
14 |
use case triggers an edge case bug in one of the native implementations. |
|
|
15 |
Hopefully these will be unnecessary in a few minor versions of the A |
|
|
16 |
grade browsers. |
|
|
17 |
* Added support for toJSON methods on obects being stringified |
|
|
18 |
* Moved Date stringification before replacer to be in accordance with ES5 |
|
|
19 |
|
|
|
20 |
3.0.0 beta 1 |
|
|
21 |
* Leverages native JSON.parse if available |
|
|
22 |
* Stringify API change. Third argument changed from depth control to indent |
|
|
23 |
(Per the ECMA 5 spec) |
|
|
24 |
* Stringify now throws an Error if the object has cyclical references |
|
|
25 |
(Per the ECMA 5 spec) |
|
|
26 |
* restructured stringify to leverage Y.Lang.type |
|
|
27 |
|
|
|
28 |
3.0.0 PR2 |
|
|
29 |
No changes |
|
|
30 |
|
|
|
31 |
3.0.0 PR1 |
|
|
32 |
Initial release |