Android : JSON parsing with Gson JSONObject contains list of JSON Arrays

on Thursday, August 14, 2014


How to convert the following json response to Java object using gson library. {



"status":"Success",
"result":{
"VenuereviewDet":[
{
"user_profile_imgPath":"",
"reviewDet_reviewtxt":"New review",
"reviewDet_reviewsts":"0",
"reviewDet_name":"jP",
"reviewDet_reviewdatetime":"Wednesday 23rd of July 2014 07"
},
{
"user_profile_imgPath":"",
"reviewDet_reviewtxt":"1kjdkgnkdfmgm",
"reviewDet_reviewsts":"0",
"reviewDet_name":"sreekanth",
"reviewDet_reviewdatetime":null
}
],
"venueimages":[
{
"venueimages_thumbimg":"http:\/\/localhost\/app\/images\/videothumb\/JamonJamon_1.jpg",
"venueimages_image":"http:\/\/localhost\/app\/images\/videothumb\/JamonJamon_1.jpg",
"venueimages_id":"51",
"venuedet_id":"10"
},
{
"venueimages_thumbimg":"http:\/\/localhost\/app\/images\/videothumb\/http:\/\/localhost\/app\/images\/videothumb\/JamonJamon_2.jpg",
"venueimages_image":"http:\/\/localhost\/app\/images\/videothumb\/JamonJamon_2.jpg",
"venueimages_id":"52",
"venuedet_id":"10"
}
]
}


}


How to convert this JSON response to Java Object using gson library


0 comments:

Post a Comment