You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the JSON is parsed using json.Unmarshal() with no way to customize how it is parsed.
However, for some use cases it could be useful to parse with UseNumber() (https://pkg.go.dev/encoding/json#Decoder.UseNumber) so that it is possible to correctly parse numbers that would not fit in a float64.
so that user can either call Parse() and have the current behavior, or call ParseInterface() after doing their own unmarshalling using their own Decoder.
The text was updated successfully, but these errors were encountered:
Right now the JSON is parsed using
json.Unmarshal()
with no way to customize how it is parsed.However, for some use cases it could be useful to parse with
UseNumber()
(https://pkg.go.dev/encoding/json#Decoder.UseNumber) so that it is possible to correctly parse numbers that would not fit in afloat64
.On way it could be done would be to replace
by something like
so that user can either call
Parse()
and have the current behavior, or callParseInterface()
after doing their own unmarshalling using their own Decoder.The text was updated successfully, but these errors were encountered: