Spring Boot Jackson not serializing LocalDateTime inside a list
I am using Spring Boot 2 with kotlin and trying to send POST to an endpoint via RestTemplate.
The request payload has a LocalDateTime property which is serialized properly when I sent single object in payload.
However, when I send a List (kotlin) in restTemplate.postForEntity method, it is not serializing the LocalDateTime properly. Here are the logs of the JSON serialization happening differently:
LocalDateTime property inside an object in a list...