class DayOfExecutionDeserializer extends StdDeserializer<DayOfExecution> {

    @Override
    public DayOfExecution deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) {
        try {
            String date = jsonParser.getText();
            // Remove leading zeroes
            return DayOfExecution.fromValue(date.replaceFirst("^0+(?!$)", ""));
        } catch (IOException | DateTimeParseException e) {
            log.error("Unsupported dayOfExecution format!");
        }
        return null;
    }

    public  DayOfExecutionDeserializer();

}