Support alternate radixes when writing numeric values as strings (original) (raw)

As requested in FasterXML/jackson-module-scala#65, and discussed in this thread. This would take the form of:

Another component of the request is to provide a way that instances of a certain type, for example BigInteger, could be serialized as strings of a certain radix. I would think that a Mix-In annotation on the type would be the simplest end-user interface for this, but I don't know if Jackson will recognize @JsonFormat at the class level, or recognize mix-in annotations for built-in types.