The annotation @JsonSerialize can be used to choose serialisers for particular fields or methods. Is it possible to set this (or something similar) at class le
@JsonSerialize