JSONObject map=new JSONObject();
JSONObject jsonObject=new JSONObject();
jsonObject.put("a", 12);
map.putAll(jsonObject);
System.out.println(map.toString());
JSONObject jsonObject=new JSONObject();
jsonObject.put("a", 12);
map.putAll(jsonObject);
System.out.println(map.toString());
System.out.println(map.toJSONString());
Map<String,Object> mapMark=JSONObject.parseObject(d);
for(Entry<String,Object> m:mapMark.entrySet()){
System.out.println(m.getKey()+" "+m.getValue());
}
//可以同时获得mapMark可以同时获得key和entry集合