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
MarshalJSON instead returns <nil> with no error, which is invalid JSON. At the very least, if MarshalJSON should not return null for nil *big.Int, an error should be returned rather than producing invalid JSON.
The text was updated successfully, but these errors were encountered:
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
labels
Mar 4, 2022
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.com/p/Zz6ueutEwo7
What did you expect to see?
MarshalJSON should return the JSON
null
value.What did you see instead?
MarshalJSON instead returns
<nil>
with no error, which is invalid JSON. At the very least, if MarshalJSON should not returnnull
for nil*big.Int
, an error should be returned rather than producing invalid JSON.The text was updated successfully, but these errors were encountered: