String str="[{\"cIndex\":14,\"column\":\"nextAdvice\",\"id\":1289,\"rIndex\":1,\"row\":\"sales\",\"tableName\":\"income\",\"value\":\"100000\"}]";
        JSONArray array = JSONObject.parseArray("[{\"cIndex\":14,\"column\":\"nextAdvice\",\"id\":1289,\"rIndex\":1,\"row\":\"sales\",\"tableName\":\"income\",\"value\":\"100000\"},{\"cIndex\":14,\"column\":\"nextAdvice\",\"id\":1289,\"rIndex\":1,\"row\":\"sales\",\"tableName\":\"income\",\"value\":\"100000\"}]");
        List<ComputeDataDO> list = JSONObject.parseArray(array.toJSONString(), ComputeDataDO.class);// 过时方法
        System.out.println(list);

 

posted on 2019-09-12 16:48  王洪洪  阅读(699)  评论(0编辑  收藏  举报