GSON: Expected a string but was BEGIN_OBJECT

Gson解析遇到错误:GSON: Expected a string but was BEGIN_OBJECT?

一般来说,这个错误是因为你在根据json字符串建立实体类的时候,结构或者字段属性匹配错误,

比如应该是:
private List xxxList;

结果手误会写成:
private List xxxList;

这个错误很简单,但要仔细的去找.
更多问题加群:584275290

你可能感兴趣的:(GSON: Expected a string but was BEGIN_OBJECT)