encoding/json: missing error unmarshalling null value into field with string tag #7046
Labels
Milestone
Comments
https://golang.org/cl/47260043/ Labels changed: added release-go1.3. Status changed to Started. |
This issue was closed by revision 880442f. Status changed to Fixed. |
Comment 4 by nicolashillegeer: And as an example test case: http://play.golang.org/p/mT8l5jeN4c |
It was certainly a bug that unmarshaling {"a": "4", "b": 2, "c": null} produced {A:4, B:2, C:4}. However, I don't believe the fix here was correct. It should have ignored the null, not made it an error. This is consistent with the non-,string unmarshaling, as amended due to issue #2540. I am going to change this behavior as part of fixing issue 8587. That should make nicolashillegeer happy at least. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by accipiter:
The text was updated successfully, but these errors were encountered: