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);

 

相关文章:

  • 2022-12-23
  • 2021-11-14
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2018-04-02
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
相关资源
相似解决方案