class ObjectNodeCoercing extends BaseCoercing {

  @Override
  public Object parseValue(Object input) throws CoercingParseValueException {
    try {
      JsonNode jsonNode = mapper.readTree(input.toString());
      if (!jsonNode.isObject()) {
        throw new CoercingParseValueException("Expected 'ObjectNode', got: " + jsonNode);
      }
      return jsonNode;
    } catch (IOException e) {
      log.error("Error parsing value: {}", input, e);
      throw new CoercingParseValueException(e);
    }
  }

}