IIRC, eval()-ing a "literal object" will throw because the braces are seen 
as opening a block of code, and not an object literal; that's why most uses 
of eval() for "JSON parsing" enclose the string within parens.

But really, you should use com.google.gwt.core.client.JsonUtils instead, 
which takes of this for you, and also provides "safe parsing" using (IIRC) 
either native JSON.parse or a RegExp check before calling eval().

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to