code: public static <T> T withJsonInputStream(InputStream inputStream,
              Class<T> c) {
          try {
              return jsonMapper.readValue(inputStream, c);
          } catch (Exception e) {
              return JMExceptionManager.handleExceptionAndReturnNull(log, e,
                      "withJsonInputStream", inputStream);
          }
      }
docs: With json input stream t.
  
  @param <T>         the type parameter
  @param inputStream the input stream
  @param c           the c
  @return the t