FasterXML / jackson-docs

Documentation for the Jackson JSON processor.
726 stars 111 forks source link

Mapping issues with Java 8 java.time.Instant #3

Closed pluttrell closed 8 years ago

pluttrell commented 9 years ago

How do you solve this:

com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class java.time.Instant]: can not instantiate from JSON object (need to add/enable type information?)

Thanks.

cowtowncoder commented 9 years ago

I think you'll want this module:

https://github.com/FasterXML/jackson-datatype-jsr310

which adds support for Java8 date/time types.