0

I am trying to parse a json

{"objects":[{"obimages":["obj_icon\/133431837745.jpg","obj_icon\/1334318377319.jpg","obj_icon\/1334318378384.jpg","obj_icon\/1334318378ajmer21.jpg","obj_icon\/1334318378df.jpg"]}
}

i have to get the values in "obimages" individually. can any one please help me.

4
  • i think its jsonarray of images... Commented May 22, 2012 at 9:34
  • i am able to parse content in obimages as a single string,but i want it seperately. Commented May 22, 2012 at 9:45
  • i have to get each image link so that i can download it Commented May 22, 2012 at 10:01
  • Your JSON sample isn't valid. You're missing a closing ] right before the last }, assuming that there isn't more missing. Commented May 23, 2012 at 6:03

2 Answers 2

1

Refer this site, this will explain how to parse a jason link, http://www.androidhive.info/2012/01/android-json-parsing-tutorial/

Sign up to request clarification or add additional context in comments.

Comments

1

Use the classes JSONObject and JSONArray to parse JSON

2 Comments

yes i did it, but i am getting the complete links in a single string, is there any way to get it individually.
It is a JSON array, so you should be able to get the items individually, post your code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.