Hi
How can I parse LoaclDateTime to ISO 8601 format?
*Scenario:*
val data class task(val name: String, val loaclDateTime: LoaclDateTime)
val objectMapper = ObjectMapper()
objectMapper.registerModule(JavaTimeModule())
val task = Task("task", LocalDateTime.now())
val json = objectMapper.writeValueAsString(jsonBody)
*Actual*
{
"name":"task"
,"dueDate":[2023,3,11,15,51,49,540250000]
}
*Expected*
{
"name":"task"
,"dueDate":""2023-03-11T15:41:49.540"
}
--
You received this message because you are subscribed to the Google Groups
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jackson-user/dce54b46-f888-495e-b032-7b95acc6f6e0n%40googlegroups.com.