-
Notifications
You must be signed in to change notification settings - Fork 18k
encoding/json: document the unmarshalling of missing json fields #28735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The existing documentation misses to cover what will happen if json data with missing fields is unmarshalled, so a line is added to the documentation of json.Unmarshall() mentioning the consequences of unmarshalling json fields. Fixes #27172
This PR (HEAD: dc2b05c) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/148834 to see it. Tip: You can toggle comments from me using the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Message from Andrew Bonventre: Patch Set 1: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/148834. |
This PR (HEAD: 3b75299) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/148834 to see it. Tip: You can toggle comments from me using the |
Message from Andrew Bonventre: Patch Set 2: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/148834. |
Message from Daniel Martí: Patch Set 2: Code-Review-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/148834. |
53bd915
to
6139019
Compare
4a7ed1f
to
0f992b9
Compare
Message from Daniel Martí: Patch Set 2: Code-Review-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/148834. |
The existing documentation misses covering what will happen if JSON
data with missing fields is unmarshalled, so a line is added to the
documentation of json.Unmarshall() mentioning the consequences of
unmarshalling JSON fields.
Fixes #27172