JSONObject

一、net.sf.json.JSONObject

JSONObject转VO/bean

二、org.json.JSONObject

三、fastJSON

四、json与Null

org.json.JSONObject orgJSON = new org.json.JSONObject();
// The method put(String, Collection) is ambiguous for the type JSONObject
//orgJSON.put("null", null);
net.sf.json.JSONObject netJSON = new net.sf.json.JSONObject();
netJSON.put("null", null);

System.out.println("netJSON" + netJSON); // 控制台输出 : netJSON{}
posted @ 2018-08-26 14:25  小鸣Cycling  阅读(263)  评论(0编辑  收藏  举报