encoding/json: possible bug when unmarshaling maps with a custom struct as their key #38771
Labels
FrozenDueToAge
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?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Here's a playground link describing the issue.
This issue seems to only occur when
other.Name
contains a special character ("
or\
for example) after the size of the key.What did you expect to see?
When unmarshaled, the keys are correct.
What did you see instead?
The keys are incorrect under certain circumstances.
The text was updated successfully, but these errors were encountered: