code: private <T> ResponseReader<T> readJson(Class<T> cls) {
      return payload -> Json.read(payload, cls);
    }
docs: A {@link ResponseReader} that parses a response payload as Json into a specified {@link Class}.
  @param cls The {@link Class} to parse the Json payload as.