直接上代码: JSONObject的的使用需要导入json-lib-2.4-jdk15.jar包,下载地址:http://mvnrepository.com/artifact/net.sf.json-lib/json-lib/2.4: package test; import net.sf.json.JSONObject; import testspringmysql.User; public class TestClass { public static void main(String ar