Jackson deserialize date string with + and t character

Viewed 521

i have problem with deserialize Json string date: 2020-09-30T07:00:00+02:00 I am getting error:

com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.LocalDate` from String "2020-09-30T07:00:00+02:00": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text '2020-09-30T07:00:00+02:00' could not be parsed, unparsed text found at index 19

Its look like + is and unexcepted character. Pojo:

@JsonProperty("Date")
    @JsonDeserialize(using = LocalDateDeserializer.class)
    public LocalDate date;

Any ideas how i can map this string to localdate?

1 Answers
Related