string json list

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 list = JSONObject.parseArray(array.toJSONString(), ComputeDataDO.class);// 过时方法
        System.out.println(list);

 

你可能感兴趣的:(string json list)