How to pass javascript object to GWT method and parse result
问题 I have this GWT method: public static native JavaScriptObject getJsValue() /*-{ var res = $wnd.product; return res; }-*/; This is the HTML/JS part: <script type="text/javascript" language="javascript"> var product = products({id:1}).first(); </script> <!-- GWT --> <script type="text/javascript" language="javascript" src="app/app.nocache.js"></script> The object product looks like this in Firebug: Object { id=1, categoryid=0, name="Sample Product", more...} After then, Object obj = getJsValue(