场景
问题:JSONObject获取所有的key
解决方案
技巧:
JSONObject获取key:↓
JSONObject obj;
for (Map.Entry<String, Object> entry : cutReceiveAlarmMessageObject.entrySet()) {
String s = entry.getKey();
}
java小工具util系列8:JSONObject获取key
阅读 60
2022-11-29
问题:JSONObject获取所有的key
技巧:
JSONObject获取key:↓
JSONObject obj;
for (Map.Entry<String, Object> entry : cutReceiveAlarmMessageObject.entrySet()) {
String s = entry.getKey();
}
相关推荐
精彩评论(0)