You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parsing duplicate JSON keys (as in {"qty": 1, "qty": -1}) can be dangerous if the parsing behavior is inconsistent. (See here for a detailed discussion.) Some parsers will give for {"qty": 1, "qty": -1} the same result as for {"qty": -1} (i.e. serde_json's current behavior), others will give the same result as for {"qty": 1}. For some applications, this inconsistency may be exploited by attackers.
Therefore, it may be more prudent for serde_json to return an error for duplicate keys by default.