2 ms·
http://www.json.org/json2.js http://www.json.org/json2.js and here's the appropriate comment: // In the third stage we use the eval function to compile the
by kowsik 17y ago
http://www.json.org/json2.js http://www.json.org/json2.js
and here's the appropriate comment:
// In the third stage we use the eval function to compile the text into a
// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
// in JavaScript: it can begin a block or an object literal. We wrap the text
// in parens to eliminate the ambiguity.
So um, json.js does use eval, same as jQuery.
On http://www.pcapr.net http://www.pcapr.net, we use tons of javascript and I've noticed returning "large" JSON arrays makes quite a few different browsers croak.