private static String getDesc(String jsonStr, String key) {
JSONObject jsonObject = JSONObject.parseObject(jsonStr);
for (Map.Entry entry : jsonObject.entrySet()) {
if (key.equals(entry.getKey())) {
return entry.getValue().toString();
}
}
return null;
}
JSONOBject遍历
最新推荐文章于 2025-03-18 15:41:05 发布