JSONObject jsonObject = JSONObject.parseObject(response.body().string()); String res = jsonObject.getJSONObject("result").getString("res");

JSONObject jsonObject =JSONparseObjectresponsebodystring; JSONObject jsonObject1 = JSONObject jsonObjectgetresult; String res = String jsonObject1getres;优化代码