// doesn't delegate
public <T> T decodeObject(@Nonnull Class<T> type, ConfigValue configValue)
throws JsonProcessingException, IOException {
ConfigTraversingParser configParser = new ConfigTraversingParser(configValue, objectMapper);
return validate(configParser.readValueAs(type));
}
// doesn't delegate
public <T> T decodeObject(@Nonnull Class<T> type, JsonNode jsonNode) throws JsonProcessingException {
return validate(objectMapper.treeToValue(jsonNode, type));