Glad it helped you but that piece of code is not helping me,
I have an error which says "A JSONObject text must beging with {".Its funny though. On Jan 10, 5:03 pm, chowdary nani <[email protected]> wrote: > Hi Robinns > > Thanks for your help > thanks for response. > your code help me a lot > > > > > > > > On Tue, Jan 10, 2012 at 5:25 PM, Robinns <[email protected]> wrote: > > private void parseJson(String j){ > > JSONObject jObj = new JSONObject(j); > > JSONArray jArray - jObj.getJSONArray("data"); > > for(int i=0;i<jArray.length();i++){ > > JSONObject post = jArray.getJSONObject(i); > > System.out.print(post.getString("id")); > > } > > > } > > > Hope it helps > > > On Tue, Jan 10, 2012 at 5:33 PM, chowdary nani > > <[email protected]>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 > >> [email protected] > >> To unsubscribe from this group, send email > >> to>>[email protected] > >> For more options, visit this group at > >>http://groups.google.com/group/android-developers?hl=en > > > -- > > Robin > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group.> To post to this group, send email > > [email protected] > > To unsubscribe from this group, send email > > to>[email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

