encoding/json: better error message for invalid use of ,string struct tag, trying to unmarshal unquoted value into bool #64831
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Unmarshal json containing mixed quotes and unquoted values (upstream- cannot be changed):
What did you expect to see?
Error message should include the field this error happens on. There could potentially be more error cases that could benefit from more context.
What did you see instead?
Field name omitted- making it trial&error to identify the culprit in a bigger struct.
The text was updated successfully, but these errors were encountered: