I have a simple controller that return a User object, this user have a attribute coordinates that have the hibernate property FetchType.LAZY.
When I try to get this
You can use the following helper from Spring Data Rest project:
Jackson2DatatypeHelper.configureObjectMapper(objectMapper);