Both BigDecimal and BigInteger serialize to JSON numeric as follows:
but should probably serialize to a string value instead. Jackson 2.10 should support that option and make it easier for other language variants to handle. Interestingly Jackson 2.9.8 which we are currently on seems to support the consumption of either number or string so it seems likely that this can be done without a significant breaking change. From the point we implement this we can simply say that going forward we will prefer support of a string value.
As this change would still be breaking to those who consume raw graphson or something, the "breaking" label is added to this ticket.