mapstraction/mxn — pull request #251 by ChALkeR (2013-06-11 20:10:54+00:00)
Title: Use JSON.parse instead of eval() when possible.

JSON.parse is available in all major browsers since IE8 (which is near-dead already): http://caniuse.com/json

It's much better than an eval, it's more secure and it works nicely under CSP restrictions (if unsafe-eval isn't allowed).

This is the first little step for working with disabled unsafe-eval.

Also, all instances of «new Function(» should be removed, but this commit is just about JSON.parse.