架包: import com.alibaba.fastjson.JSON; String arryStr="[{"Name": "A", "Address":"北京"},{"Name": "B", "Address":"上海"},{"Name": "C", "Address":"安徽"}]"; //json 数组 JSONArray jsonarry=(JSONArray)JSONArray.parse(arryStr);//json字符串转JsonArry List<TestEntity> list=JSON.parseArray(arryStr,TestEntity.class);//json字符串转List集合 TestEntity model=JSON.parseObject(jsonarry.get(1).toString(),TestEntity.class);//json 轉java對象