json对象的转换问题:

  Object aa = map.get("settleList");
// for (int i = 0; i < settleList.size(); i++) {
// Settle settle = settleList.get(i);
// System.out.println(settle);
// }

String result=JSON.toJSONString(aa);
// List<Settle> settleList = (List<Settle>) JSONArray.(jsonObjString, Settle.class);
List<Settle> settles = JSONArray.parseArray(result, Settle.class);
settles.get(1).getBatchNo();
这样写就不报错了

相关文章:

  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-01-03
  • 2021-12-01
  • 2021-03-27
  • 2021-10-01
猜你喜欢
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
相关资源
相似解决方案