I have a custom MyObjectMapper class and would like to have it use a custom MyPrettyPrint class as the default pretty printer everywhere one is used by the object mapper class. Ideally, I would like to be able to do something as simple as this:
public class MyObjectMapper extends ObjectMapper {
@Override
protected PrettyPrinter _defaultPrettyPrinter() {
return new MyPrettyPrinter();
}
}
Currently, the ObjectMapper class generates new DefaultPrettyPrinter instances directly which limits the usefulness of overriding the _defaultPrettyPrinter method.
This enhancement request is a follow on to the discussion listed here.