Upgrade 0.2.0 to 1.0.0
Number and String instances are now turned into string literals instead of objects. Date instances now resolve to .toISOString(). Functions are now resolved to undefined
. Instances with toJSON
will now have toJSON
called. Numeric values like NaN
, Infinity
and -Infinity
are now resolved to 'null'
. All of this is to more narrowly follow the JSON.stringify spec.
The library now uses native JSON.stringify
, as it is consistently much faster and practically present in every javascript environment anyway - even in legacy browsers. Properties stringReg
and stringReplace
have been removed.