Use JSON3 instead of JSON2 library
We recently started using the JSON3 library as it
- Correctly serializes primitive wrapper objects.
- Throws a TypeError when serializing cyclic structures (JSON 2 recurses until the call stack overflows).
- Utilizes feature tests to detect broken or incomplete native JSON implementations (JSON 2 only checks for the presence of the native functions). The tests are only executed once at runtime, so there is no additional performance cost when parsing or serializing values.
You ca download it from the this link
Link
Written by tambi jalouqa
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#