|
|
|
|
|
by JulianMorrison
4919 days ago
|
|
It's still the Wrong Way™. You want to parse JSON, you write a lexer that recognizes its symbols and a parser that consumes them and spits the JS equivalent. Otherwise you are playing an eternal game of whack-a-mole with the JS eval parser. No. Just no. |
|
Note that the code is now only a work-around for older browsers. Every modern browser supports native JSON parsing anyway.