code: public <T> T read(String json, Class<T> expectedReturnType) {
          try {
              ObjectMapper objectMapper = new ObjectMapper();
              JsonNode tree = objectMapper.readTree(json);
              return read(tree, expectedReturnType);
          } catch (IOException e) {
              throw new InvalidJsonException(e);
          }
      }
docs: Reads content from a JSON payload based on the expression compiled into this instance
  
  @param json The JSON payload to retrieve data from
  @param expectedReturnType The type that the return value is expected to be
  
  @return The content read from the JSON payload
  
  @throws InvalidJsonException if the {@code json} argument is not a legal JSON string