News for hackers. Stuff that matters.
Re:Json ⊄ js by JulianMorrison on Friday December 28, 2012 @04:08PM (#4979553)
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.
Re:Json ⊄ js by fforw on Saturday December 29, 2012 @09:44AM (#4982173)
If you can find a case in which the validator fails, it's wrong. Otherwise, if it's looks like a JSON parser and works like a JSON parser, i.e. is indistinguishable from a "proper" parser, it makes no sense but satisfying OCD to rework it.

Note that the code is now only a work-around for older browsers. Every modern browser supports native JSON parsing anyway.