That sure is helps.
thanks alot
User Profile
Collapse
-
So the point is to use parentheses to let the js interpreter know that it is an expression. That way it can interpret it correctly, Is that so?
thanks for sharing your knowledge.Leave a comment:
-
Thanks for the quick reply.
Correct me if I am wrong, are you saying that it is because the curly braces rather than the JSON. I meant because it contains a curly brace in the first character, the js interpreter (could) be misunderstood....Leave a comment:
-
Sorry to drop in, but I really have to ask. When I eval() a JSON object in a text form, it goes error.
I've found out that I can do this instead :Code:var jsonText = "{"name":"json"}"; var jsonObj = eval(jsonText);
that I have to...Code:var jsonText = "{"name":"json"}"; var jsonObj = eval('('+jsonText+')');Leave a comment:
No activity results to display
Show More
Leave a comment: