@Override
    public Period deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException, JsonProcessingException
    {
        String textValue = jsonParser.getText();
        try
        {
            return new Period(textValue);
        }
        catch (Throwable throwable)
        {
            throw new InvalidFormatException(throwable.getMessage(), textValue, String.class);
        }
    }