JSONObject object = new JSONObject(); user.setCreateDateTime(null); object.put("user", user); User user2 = (User) object.get("user"); System.out.println(user2.getName());
JSONObject object = new JSONObject(); object.put("user", user); Object object2 = object.get("user"); JSONObject obj = JSONObject.fromObject(object2.toString()); System.out.println(obj.getString("name"));
站长微信:xiaomao0055
站长QQ:14496453