Use custom json encoder for Decimal numbers to improve speed.