code: public static <T> T fromJson(final JsonNode json, final Class<T> clazz) {
          try {
              return createObjectMapper().treeToValue(json, clazz);
          } catch (Exception e) {
              throw new ParseException(e);
          }
      }
docs: Convert a JsonNode to a Java value
  
  @param json  Json value to convert.
  @param clazz Expected Java value type.
  @param <T>   type of return object
  @return casted value of given json object
  @throws ParseException to runtime if json node can't be casted to clazz.