JSON的put方法是一个指针引用;

import org.json.simple.JSONObject;

JSONObject a=new JSONObject();
a.put("date","2015-11-08");
a.put("time","15:48:28");

a.toJSONString() --> {"date":"2015-11-08","time","15:48:28"}


JSONObject可以用来进行配置管理,将配置参数使用字符串来保存。Json格式的字符串也便于解析。