code: private static <T> T jsonDecode(String responseContent, TypeReference<T> valueTypeRef) throws IOException {
  
        ObjectMapper mapper = new ObjectMapper();
        
        try {
           return mapper.<T>readValue(responseContent, valueTypeRef);
        } catch (JsonGenerationException e) {
           logger.severe("unable decode");
           throw new IOException(e);
        } catch (JsonMappingException e) {
           logger.severe("unable decode");
           throw new IOException(e.getMessage());
        }
     }
docs: Given a string and a type ref.  Decode the string and return the values.
  
  @param <T>
  @param responseContent
  @param valueTypeRef
  @return
  @throws IOException