Expected BEGIN_ARRAY but was BEGIN_OBJECT

Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 3519 path $.data[1].inspector_user

Gson 中 ""引起来的是STRING, {} 是类,[] 是List

我代码中是这样写的 private List<String> inspector_user

         private inspectorUser inspector_user;//改写后

posted @ 2018-05-25 18:22  dub  阅读(1322)  评论(0编辑  收藏  举报