encoding/json: clarify what happens when multiple items match the same field #43664
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
This test I added to encoding/json
prints
The comment says Unmarshal "prefers" exact matches, but if there are no words about what happens if multiple fields match.
It's clearly an odd case, but clarity would be nice. I expected the exact match to win always.
The text was updated successfully, but these errors were encountered: