Skip to content
Snippets Groups Projects
Commit d65e3d0f authored by deuce's avatar deuce
Browse files

For the case where we have a native JSON object, do *not* for heavens sake

use the native JavaScript one.

This single-handedly improved the performance of the JSON DB on 3.16 by a
factor of about 20.
parent 672192a0
No related branches found
No related tags found
No related merge requests found
if(js.global.JSON==undefined) {
//alert('IMPORTANT: Remove this line from json2.js before deployment.');
/*
http://www.JSON.org/json2.js
......@@ -482,3 +483,4 @@ replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
}
}());
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment