encoding/json: duplicate struct tags cause json.Marshal to silently fail #28288
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
What did you do?
Marshal a struct containing duplicate struct tags silently produces an empty json struct.
Example:
What did you expect to see?
json.Marshal
gives an error.What did you see instead?
json.Marshal
silently returns an empty json struct.System details
The text was updated successfully, but these errors were encountered: