JSONObject messageJson = JSONObject.parseObject(message);
messageJson = messageJson.getJSONObject("message");
Iterator<String> ite = messageJson.keySet().iterator();
Map<String, Object> reqMap = new HashMap<>();
while (ite.hasNext()) {
String key = ite.next().toString();
Object value = messageJson.get(key);
reqMap.put(key, value);
}
JSONObject ecrypJson = (JSONObject)JSONObject.toJSON(respMap);
String message = EncryptionUtil.encrypt(ecrypJson.toString());
阿里JSONObject
最新推荐文章于 2024-07-24 07:30:00 发布