【发布时间】:2014-08-14 07:11:32
【问题描述】:
如何使用 gson 库将以下 json 响应转换为 Java 对象。 {
"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"
}
]
}
}
如何使用 gson 库将此 JSON 响应转换为 Java 对象
【问题讨论】: