码迷,mamicode.com
首页 > Web开发 > 详细

JSON与null

时间:2018-02-02 21:46:14      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:source   null   输出   控制台   pos   java   str   out   object   

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{}

JSON与null

标签:source   null   输出   控制台   pos   java   str   out   object   

原文地址:https://www.cnblogs.com/52liming/p/8407002.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!