Jackson Issue with LocalDate

Had encountered this exception while using jackson for serialization and deserialization

JSON parse error: Can not construct instance of java.time.LocalDate

turns out the solution is to register the module

objectMapper.registerModule(new JavaTimeModule());

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s