• Use the @JsonValue annotation for specifying what the JSON or XML value should be if it’s not the same as the output as #toString().