Earlier quoted context omitted.
Except I don't think a JSON object is valid Javascript by itself.
What about a JSON object do you think is invalid Javascript?
> eval('{"key": "value"}');
SyntaxError: missing ; before statement
You can get around this by using parens: > eval('({"key": "value"})');
Object { key: "value" }
But accidentally including a JSON URL in a script tag should fail to evaluate if there's an object at the top level.