这个只是我个人用不是通用的
List<KEC010Ppojo> kec010Ppojos=shac1Dina47shMapper.selectc1UPallString("C1","9A","68","L2410RL05W79C04","2023");
System.out.println(kec010Ppojos);
// JSONArray jsonArray = JSONArray.of(kec010Ppojos);
JSONArray kec010Ppojo = JSONArray.of(kec010Ppojos);
// 创建JSONArray对象
JSONArray jsonArray = JSONArray.parse(kec010Ppojo.toString());
System.out.println("jsonArra的值: " + jsonArray.getString(0));
String jsonArrayString = jsonArray.getString(0);
// 提取JSON数组的第一个元素(即这个对象)
String firstElementJson = jsonArrayString.substring(1, jsonArrayString.length() - 1);
// 将提取的对象转换为JSONObject
JSONObject jsonObject = JSON.parseObject(firstElementJson);
// 输出结果
System.out.println(jsonObject.getString("c1UP01"));