Gson反序列化对象或数组

时间:2014-03-24 01:55:36

标签: android gson

我得到了json字符串:

{
"currentPage": 1,
"dataList": [
    {
        "date": 1395110482,
        "imageList": [
            "http://www.timeface.cn/uploads/times/2014/01/26/15/4209_YJgMNq.jpg",
            "http://www.timeface.cn/uploads/times/2014/01/26/15/4209_YJgMNq.jpg"
        ]
    },
    {
        "date": 1395110482,
        "imageList": [
            "http://www.timeface.cn/uploads/times/2014/01/26/15/0449_kZyFc4.jpg"
        ]
    }

    ],
    "info": "ok",
    "status": "1",
    "totalPage": 1
}

我的豆是

public class TimeSetList extends BaseResponse
{
    public int currentPage;
    public int totalPage;
    public List<TimeSet> dataList;

}


public class TimeSet extends BaseModule
{    private static final long serialVersionUID = 1L;

    public String date;
    public List<String> imageUrl;

}

我的问题是param imageList,它包含一个或多个字符串对象。 如何处理这个问题?

感谢

0 个答案:

没有答案