我有一个包含多个列表的类。类设计是否适合 gson 工作?
我的课:
Class Data
{
List<String> actor;
List<Integer> text_relevance;
List<String> title;
}
json字符串如下……这个json的类设计正确吗?
{
"data":
{
"actor":["Abercrombie, Ian","Baker, Dee Bradley","Burton, Corey",
"Eckstein, Ashley","Futterman, Nika","Kane, Tom",
"Lanter, Matt","Taber, Catherine","Taylor, James Arnold",
"Wood, Matthew"],
"text_relevance":["308"],
"title":["Star Wars: The Clone Wars"]
}
}