Open
Description
big.Int
by design marshalls / unmarshalls to a number in JSON but for actual BIG numbers this ends up with a mess in other languages, specially javascript ...
Now encoding/json
has a ,string
struct tag to flag a field to be quoted as a string instead but it's restricted only for strings, floats, integers, and booleans can be quoted.
atm.
If this could also be applied to big.Int
then we'd have a good solution for BIG numbers without breaking the existing functionality at all!
related; #28154
and there's probably many more people running into this issue...
Activity