Unmarshalling LocalDate/LocalDateTime with MOXy
问题 How can I get MOXy to unmarshal JSON into LocalDate and LocalDateTime ? I've got an @GET method which produces a sample instance with three fields of types LocalDate , LocalDateTime and Date , respectively. Hitting that endpoint, I get: { "localDate": "2017-07-11", "localDateTime": "2017-07-11T10:11:10.817", "date": "2017-07-11T10:11:10.817+02:00" } I then POST the above data to my @POST method, which simply returns the data again: { "date": "2017-07-11T10:11:10.817+02:00" } As you can see,