Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json parse error: cannot deserialize value of type `java.time.localdate` from string

//There are milliseconds in the input string, so your format should be 
//“yyyy-MM-dd’T’HH:mm:ss.SSS”
//Update: If the millisecond part consists of 1, 2, 3 digits or is optional, 
//you may use the following format:


@JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss[.SSS][.SS][.S]")
private LocalDateTime updatedTime;
Source by java.tutorialink.com #
 
PREVIOUS NEXT
Tagged: #json #parse #deserialize #type #string
ADD COMMENT
Topic
Name
1+3 =