Why the open quote and bracket for eval(‘(‘ + jsonString+ ‘)’) when parsing json string
The syntax ambiguity to which Crockford refers is that if an open curly brace is not found on expression context, it will be recognized like a block, and not like the start of an object literal. For example: {“foo”: “bar”} // SyntaxError Will give you a syntax error, because it will be interpreted as a … Read more