JAVA之Map转JSONObject
private JSONObject toJsonObj(Map<String, Object> map, JSONObject resultJson) {
Iterator it = map.keySet().iterator();
while (it.hasNext()) {
String key = (String) it.next();
resultJson.put(key, map.get(key));
}
return resultJson;
}