2 cc seizi cc_seizi 于 2016.02.09 19:21 提问

代码出现 java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 21 2C

这行代码是ResponseObject> object=new GsonBuilder().create().fromJson(arg0.result, new TypeToken>>(){}.getType());
求问什么原因有什么办法处理吗

1个回答

caozhy
caozhy   Ds   Rxr 2016.02.09 20:49
 ResponseObject<List<Goods>> object=new GsonBuilder().create().fromJson(arg0.result.toString(), new TypeToken<ResponseObject<List<Goods>>>(){}.getType());
Csdn user default icon
上传中...
上传图片
插入图片