Android : Android JSON parsing same attribute

on Monday, April 13, 2015


I have a JSON response like this :


images: [


{


small: "/productimages/247DRFS100374LAV/small/247DRFS100374LAV_1.jpg",


medium: "/productimages/247DRFS100374LAV/medium/247DRFS100374LAV_1.jpg",


large: "/productimages/247DRFS100374LAV/large/247DRFS100374LAV_1.jpg"


},


{


small: "/productimages/247DRFS100374LAV/small/247DRFS100374LAV_2.jpg",


medium: "/productimages/247DRFS100374LAV/medium/247DRFS100374LAV_2.jpg",


large: "/productimages/247DRFS100374LAV/large/247DRFS100374LAV_2.jpg"


}


],


Since, the Image attribute gives 2 objects with exact same attributes (Small, medium and large), I want to extract only large images from both objects. How can I do this ? please help, I'm a beginner.


0 comments:

Post a Comment