When using the new Java 8 java.time.Instant type on some fields in a MongoDB Document and then exposing that with a @RepositoryRestResource, the fields will be displayed somewhat like this:
{
"createdAt": {
"content": "2017-01-01T00:00:00.000Z"
}
}
What i would expect them to look like is this:
{
"createdAt": "2017-01-01T00:00:00.000Z"
}
How can I fix this behavior?