String respStr = execute.body().string();
Logger.d(GlobalParams.LOG_TAG_CONTENT, ""+respStr);
</BUG>
if (!TextUtils.isEmpty(parseWhat)) {
<BUG>JSONObject jsonObject = new JSONObject(respStr);
</BUG>
return JSON.parseObject(jsonObject.getString(parseWhat), clazz);
}
<BUG>return JSON.parseObject(respStr, clazz);
</BUG>
}

public <T> T invoke(String parseWhat, Class<T> clazz) throws IOException, JSONException {
requestBody = buildRequestBody();
Request request = buildRequest();
return execute(parseWhat, request, clazz);
}
private <T> T execute(String parseWhat, Request request, Class<T> clazz) throws IOException, JSONException {
String response = mOkHttpClientManager.execute(request);
Logger.d(GlobalParams.LOG_TAG_CONTENT, ""+response);
if (!TextUtils.isEmpty(parseWhat)) {
JSONObject jsonObject = new JSONObject(response);
return JSON.parseObject(jsonObject.getString(parseWhat), clazz);
}
return JSON.parseObject(response, clazz);
}
