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 new ArrayList<T>(JSON.parseArray(jsonObject.getString(parseWhat), clazz));
}
return null;
}

public <T> ArrayList<T> invokeForList(String parseWhat, Class<T> clazz) throws IOException, JSONException {
requestBody = buildRequestBody();
Request request = buildRequest();
return executeForList(parseWhat, request, clazz);
}
private <T> ArrayList<T> executeForList(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 new ArrayList<T>(JSON.parseArray(jsonObject.getString(parseWhat), clazz));
}
return null;
}
