Make sure the exception has some level of parity with the error from json2.js.

This commit is contained in:
jeresig 2010-01-07 12:25:50 -05:00
parent 308d6cdad0
commit a9665bbe9b

View file

@ -584,7 +584,7 @@ jQuery.extend({
data = (new Function("return " + data))();
} else {
throw "JSON Syntax Error: " + data;
throw "JSON.parse";
}
// If the type is "script", eval it in global context