Is it possible to configure jackson to serialize simple value objects, wrapping only one attribute, to be serialized like enums?
public final class ErrorCode {