Hi,
How do we do safe JSON parsing with GWT? It looks like the json parser GWT offers uses eval() - is there a different option which uses the native implementations when available?
Thanks
------------- Edit ----------------------------
Ok I got a script from here:
http://code.google.com/p/json-sans-eval/
which is supposed to not use eval (so should be safe I hope!), and use it like this:
private native JavaScriptObject nativeParseUntrustedJson(String jsonString) /*-{
return $wnd.jsonParse(jsonString);
}-*/;
it works, does that look ok?
Thanks!!