code: private JsonArray getJsonFromResponse(HttpResponse response) throws IOException
      {
          InputStream content = response.getEntity().getContent();
          Reader reader = new InputStreamReader(content);
          JsonObject json = gson.fromJson(reader, JsonObject.class);
          JsonElement jsonElement = json.get("rows");
          return jsonElement == null ? null : jsonElement.getAsJsonArray();
      }
docs: Gets the json from response.
  
  @param response
  the response
  @return the json from response
  @throws IOException
  Signals that an I/O exception has occurred.