News for hackers. Stuff that matters.
Re:Mark – A simple and unified notation for both object and ... by afandian on Monday February 05, 2018 @10:31AM (#16309342)
Yes you would. JSON is valid JS, and executing JSON in a browser is a recipe for disaster.
Re:Mark – A simple and unified notation for both object and ... by minitech on Monday February 05, 2018 @01:08PM (#16310638)
JSON isn’t valid JS – its representation of strings allows U+2028 and U+2029 to appear unescaped, but JavaScript string literals don’t.

Not sure how else executing (valid) JSON in a browser would be a recipe for disaster? `eval` was the standard way to parse JSON from trusted sources for a long time.