decimalInfinite This is the JSONiq implementation of the decimalInfinite encoding. It's just 115 lines of code.