okhttp request data is then parsed by the data json, found in the log warn:
The reason this error is because the json parse error.
First, I confirm that I parse error codes, find the source was found to be a problem with json data returned.
ResponseBody data=response.body();
String json=data.toString();
processData(json);
The above data.toString should be changed data.string ().
the reason:
data.toString returns json objects, data.string () is the json data returned.
Figure:
data.toString return data
data.string () returns the data