 [{"a":"xx","b":"bbb"},{"a":"xx","b":"bbbb"},{"a":"xx","b":"bbbbb"}]  dui对于这种整个json就是一个数组的,设置的没问题,解析报错 type 'String' is not a subtype of type 'int' of 'index' 我看了下,生成的代码jsonRes['json_list'],这里明显有问题,json_list这个key是不存在的,所以报错了  个人感觉对于这种类型,直接当做数组item的json来处理,额外再提供一下数组解析的方法就好了