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 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
--
Robin
--
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