用Gson解析Json,数组里嵌套数组的实体类怎么写?
{
"message": "获取商品列表成功",
"result": "0",
"list": [
{
"collectionsCount": "0",
"content": "全球购 三星(SAMSUNG)905S3G 13.3英寸轻薄笔记本电脑 三星专属四核 4G 128Gssd 集显",
"unit": "台",
"goodsId": "27",
"username": "就是这么任性",
"title": "笔记本电脑",
"price": "3000",
"userId": "31",
"commentCount": "6",
"photoList": [
{
"goodsUrl": "http://192.168.0.127:8080/Nail/goods/3ee0bb65-5595-413e-8d39-3e86c0bcc3b5.png"
},
{
"goodsUrl": "http://192.168.0.127:8080/Nail/goods/849894fb-c727-47b6-b6bc-d7f72eba81c4.png"
},
{
"goodsUrl": "http://192.168.0.127:8080/Nail/goods/86f68804-ef70-42ca-aeb9-75fd50c5ce34.png"
}
],
"userheadurl": "http://192.168.0.127:8080/Nail/head/dd9393f9-d715-4b82-b41b-998e5517c852.jpg",
"agreecount": "1"
}
]
}
后台传来了一串数据,想用GSON但不知道bean该怎么写
有哪位大佬能教教小弟吗
我太菜了