my goal is to configure the objectMapper in the way that it only serialises element which are annotated with @JsonProperty.
objectMapper
@JsonProperty
In order to do
It may be because I'm using Spring 3.1 (instead of Spring 3.0.5 as your question specified), but Steve Eastwood's answer didn't work for me. This solution works for Spring 3.1:
In your spring xml context: