[android-developers] Re: google api ajax webservice

2010-11-23 Thread sat
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

[android-developers] Re: google api ajax webservice

2010-11-23 Thread sat
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