Say I have a default way to serialize Foo objects. How can I set a specific @Controller class to use an alternate JsonSerializer for Foo objects?
With @JsonSerialize inside Foo I can only specify one universal behavior for all serializations of it. How can I have alternate ones?