1 String str = "{\"name\":\"zhangsan\",\"password\":\"zhangsan123\",\"email\":\"10371443@qq.com\"}"; 2 JSONObject json = JSONObject.fromObject(str); 3 System.out.println(json.getString("name"));
1 String str = "{\"name\":\"zhangsan\",\"password\":\"zhangsan123\",\"email\":\"10371443@qq.com\"}"; 2 JSONObject json = JSONObject.fromObject(str); 3 System.out.println(json.getString("name"));
转载于:https://www.cnblogs.com/cuiguangpeng/p/11558159.html