code: public <T> Response<T> toJsonResponse(Class<T> cls) {
          return new Response<>(this.url, this.statusCode, this.cookies, this.headers, readToJson(cls));
      }
docs: Convert http response body to json result