You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that if I include json2.js on a page that doesn't have the JSON object but does have Date#toJSON specified I get incorrect output from JSON.stringify().
Here is a simple example:
JSON.stringify(Object('hi'));// should return '"hi"' but returns '{"0":"h","1":"i"}'
The text was updated successfully, but these errors were encountered:
I noticed that if I include
json2.js
on a page that doesn't have theJSON
object but does haveDate#toJSON
specified I get incorrect output fromJSON.stringify()
.Here is a simple example:
The text was updated successfully, but these errors were encountered: