Closed GoogleCodeExporter closed 9 years ago
forgot to include the java code. here it is.
Object user = win.eval("get_user_info()"); // get JSON from javascript
Object user_obj=JSONValue.parse(user.toString());
JSONArray user_array=(JSONArray)user_obj;
Original comment by lamka...@gmail.com
on 6 Nov 2009 at 10:57
From the input you provided, this is a JSONObject and the code should likes
like:
JSONObject user_obj=(JSONObject)user_obj;
Original comment by fangyid...@gmail.com
on 8 Nov 2009 at 10:24
Original issue reported on code.google.com by
lamka...@gmail.com
on 6 Nov 2009 at 10:54