Possible Duplicate:
Why the open quote and bracket for eval('(' + jsonString+ ')') when parsing json string
According to the Wikipedia entry on JSON, if you wanna parse a JSON object with eval, say:
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
You need to do it by:
var obj = eval("(" + JSON + ")");
Without the parentheses wrapping around the JSON text, it will trigger an ambiguity in JavaScript's syntax.
I am not very sure about what this ambiguity is, and would appreciate some input.