User user = new User(); //1. Gson gson = new Gson(); gson.toJson(user ); //return String (no null object) //2. JSONObject.fromObject(user).
確定! 回上一頁