JSONObject初始化HashMap不用toString()方法也能成功输出?why?
public static void CreateHashMapJson() { Map
json2 = new HashMap(); json2.put("name", "JASON"); json2.put("borthday", 23); Object nullobj = null; json2.put("gf", nullobj ); System.out.println(new JSONObject(json2).toString()); } ,>,>