code: public static <T> T getRestApiResponseAsObject(String uri,
              TypeReference<T> typeReference) {
          try {
              return JMJson.withJsonString(getResponseAsString(uri),
                      typeReference);
          } catch (Exception e) {
              throw JMExceptionManager.handleExceptionAndReturnRuntimeEx(log, e,
                      "getRestApiResponseAsObject", uri, typeReference);
          }
      }
docs: Gets rest api response as object.
  
  @param <T>           the type parameter
  @param uri           the uri
  @param typeReference the type reference
  @return the rest api response as object