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
{{ message }}
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
If the object has an extended prototype object (which I think is a bad thing, but some people do it), there are values being put into the JSON string that shouldn't be included.
In some situations it's an option to not support these conditions, however in the case of this plugin we should replicate that browsers behavior.
Code to reproduce:
Object.prototype.foo = 'bar';
var obj = { test: 12 };
JSON.stringify( obj );
From krinklemail on September 18, 2011 04:52:37
If the object has an extended prototype object (which I think is a bad thing, but some people do it), there are values being put into the JSON string that shouldn't be included.
In some situations it's an option to not support these conditions, however in the case of this plugin we should replicate that browsers behavior.
Code to reproduce:
Object.prototype.foo = 'bar';
var obj = { test: 12 };
JSON.stringify( obj );
Original issue: http://code.google.com/p/jquery-json/issues/detail?id=50
The text was updated successfully, but these errors were encountered: