我在反序列化以下 json 时遇到问题:
{
"17":"asdf",
"18":"fdsa",
"19":"gfds",
"34":"vcxz",
"35":"oiue",
"36":"oiuy"
}
到:
public class CategoryList {
List<Category> list;
}
public class Category {
String id;
String name;
}
我收到以下信息IllegalStateException
:
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2
请告诉我哪里出错了。