JsonObject字符串转bean

           JSONObject jsonObject = new JSONObject(response.body());
           String taskJson = jsonObject.optString("var");
           Gson gson = new Gson();
           Task task = gson.fromJson(taskJson, Task.class);

你可能感兴趣的:(JsonObject字符串转bean)