问题是由放置在数组中的JSON对象(在 每种 情况下)的末尾逗号引起的:
{ "number": "...", "title": ".." , //<- see that comma?}如果删除它们,您的数据将成为
[ { "number": "3", "title": "hello_world" }, { "number": "2", "title": "hello_world" }]和
Wrapper[] data = gson.fromJson(jElement, Wrapper[].class);
应该工作正常。



