Using JSON array from the previous post , one can do like this ,
String res = json_arr.get(0).toString(); //To get the first result.
obj = (JSONObject) new JSONTokener(res).nextValue();
String url = obj.getString("url"); //assuming url is one of the
field in JSON response.
Now u can display th
Assuming result = your JSON response.
JSONObject json = null;
JSONObject json_obj = null;
JSONArray json_arr = null;
json = new JSONObject(result.toString());
json_obj = json.getJSONObject("responseData");
json_arr = json_obj.getJSONArray("results");
That should help you.
On Nov 23, 1:12 pm, At
2 matches
Mail list logo