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"));