10 Aug
2019
10 Aug
'19
11:07 p.m.
Christopher Barker wrote:
I don't think anyone else has come up with, any examples other than Decimal that require this "raw" encoding.
It's possible that someone could have their own custom numeric type that they want to encode as a JSON number. But if the base code is enhanced to understand Decimal, that could be achieved using the existing mechanism for returning an alternative object to be encoded -- just convert your type to an equivalent Decimal and return that. -- Greg