We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de0bead commit 6493bdcCopy full SHA for 6493bdc
src/prototype/lang/string.js
@@ -755,6 +755,7 @@ Object.extend(String.prototype, (function() {
755
try {
756
if (!sanitize || json.isJSON()) return eval('(' + json + ')');
757
} catch (e) { }
758
+ // If we get this far, the string is not valid JSON.
759
throw new SyntaxError('Badly formed JSON string: ' + this.inspect());
760
}
761
0 commit comments