我有以下格式的JSON。
{
"data":{
"list1":[],
"list2":[],
"list3":[]
}
}
预期BEGIN_OBJECT但在第1行第64列路径处是BEGIN_ARRAY 我的gson模型是$ .data错误
public class Model{
private DataBean data;
public DataBean getData() {
return data;
}
public void setData(DataBean data) {
this.data = data;
}
public static class DataBean {
private List<list1> list1;
private List<list2> list2;
private List<list3> list3;
public List<list1> getList1() {
return list1;
}
public void setList1(List<list1> list1) {
this.list1 = list1;
}
public List<list2> getList2() {
return list2;
}
public void setList2(List<list2> list2) {
this.list2 = list2;
}
..
}
}
我关注的是GSON。它期待Object取代Array我哪里出错了?