encoding/json: Capitalization in field tags not handled correctly when unmarshalling #28190
Labels
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If you try to unmarshal a JSON string with entries with identical keys but different cases, the correct key may not be chosen.
Test Program:
Expected output:
testone = one
Actual output:
testone = two
Tested on Go Playground - go1.11.1
https://play.golang.org/p/zMeyW9Zgfnz
The text was updated successfully, but these errors were encountered: