As of Jackson 2.6, there is a new and improved way to define read-only
and write-only
properties, using JsonProperty#access() annotation. This is recommended over use of separate JsonIgnore
and JsonProperty
annotations.
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
public Map> references;