id array mean try this JSONObject jObject = new JSONObject(result); JSONArray Array = jObject.getJSONArray("data"); for(int i=0;i<Array.length();i++){ JSONObject post = Array.getJSONObject(i); String id = currentjobsArray.getJSONObject(i).getString("id"); }
*else* JSONObject jObject = new JSONObject(result); JSONArray Array = jObject.getJSONArray("data"); String id = currentjobsArray.getJSONObject(0).getString("id"); On Tue, Jan 10, 2012 at 5:27 PM, T.M.S.VIJAYKUMARR <iamvijayaku...@gmail.com > wrote: > Hi > try like this > > > > > > > > On Tue, Jan 10, 2012 at 5:18 PM, chowdary nani > <naveenneeli...@gmail.com>wrote: > >> >> Hi All, >> I am working with json parsing >> Following is my json object will please any one help me how to parse id >> from that object in android >> >> {"data":[{"id":"38314877099_10150452362217100"}]} >> >> >> Thanks >> Naveen >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > > > -- > > > > > ----- > Thanks & Regards, > T.M.S.VIJAYKUMARR > BloG:http://iamvijayakumar.blogspot.com/ > > > > > -- ----- Thanks & Regards, T.M.S.VIJAYKUMARR BloG:http://iamvijayakumar.blogspot.com/ Mob.No:09048382536(Kerala) Mob.No:09751076707(TN) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en