JSONObject jsonObject = new JSONObject(response.body());
String taskJson = jsonObject.optString("var");
Gson gson = new Gson();
Task task = gson.fromJson(taskJson, Task.class);
JSONObject jsonObject = new JSONObject(response.body());
String taskJson = jsonObject.optString("var");
Gson gson = new Gson();
Task task = gson.fromJson(taskJson, Task.class);
本文标题:JsonObject字符串转bean
本文链接:https://www.haomeiwen.com/subject/aqtgwxtx.html
网友评论