Java创建Json格式数据
这片文章提供了详细的解释:http://viralpatel.net/blogs/creating-parsing-json-data-with-java-servlet-struts-jsp-json/
import org.json.JSONObject;
...
// http://www.75271.com
...
JSONObject json = new JSONObject();
json.put("city", "Mumbai");
json.put("country", "India");
...
String output = json.toString();
...
