首页 > 怎么定义JavaBean用gson解析这些json数据,我将接受的数据解析然而都是空的...

怎么定义JavaBean用gson解析这些json数据,我将接受的数据解析然而都是空的...

大家新年快乐,点进来的都是好人,谢谢。

{
    "showapi_res_code":0,
    "showapi_res_error":"",
    "showapi_res_body":{
        "pagebean":{
            "allNum":176,
            "allPages":6,
            "contentlist":[
                {
                    "albumid":63074,
                    "albummid":"003kZ85M1cfaEF",
                    "albumname":"华纳超极品音色系列",
                    "albumpic_big":"http://i.gtimg.cn/music/photo/mid_album_300/E/F/003kZ85M1cfaEF.jpg",
                    "albumpic_small":"http://i.gtimg.cn/music/photo/mid_album_90/E/F/003kZ85M1cfaEF.jpg",
                    "downUrl":"http://tsmusic24.tc.qq.com/4829067.mp3",
                    "m4a":"http://ws.stream.qqmusic.qq.com/4829067.m4a?fromtag=46",
                    "media_mid":"000buMWp48yjTi",
                    "singerid":2,
                    "singername":"BEYOND",
                    "songid":4829067,
                    "songname":"海阔天空"
                },
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...},
                Object{...}
            ],
            "currentPage":1,
            "maxResult":30,
            "ret_code":0
        }
    }
}

用Gson第三方库呀

【热门文章】
【热门文章】