阅读背景:

jsp接口获取json类型的数据_MrZhang的博客-程序员宅基地_jsp接收json数据

来源:互联网 

在测试代码中:

			String json = "{\"sex\": \"你猜\", \"name\": \"有种爱叫做东方不败\"}";
			JSONObject jsonObject = new JSONObject(json);
			String sex = jsonObject.getString("sex");
			String name = jsonObject.getString("name");
			System.out.println(sex);
			System.out.println(name);
			String json = "{\"sex\": \"



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: