Value okhttp3.ResponseBody$1@f007c25 of type java.lang.String cannot be converted to JSONObject null
手动解析json时候如果使用的是ResponeBody,转化json需要responseBody.string()
这样可以直接使用
JSONObject jsonObject = new JSONObject(responseBody.string());
如果使用 toString()转化会报错
okhttp3 ResponseBody type java.lang.String cannot be converted to JSONObject