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
Add encoding/json.Decoder.DisallowDuplicateFields() to let decoding of JSON object containing duplicate fields to error out.
When JSON object contain duplicates, it is often result of human error. So it would be good for the standard library to provide an easy way to configure the decoder to allow detecting such user errors.
The text was updated successfully, but these errors were encountered:
I see there is #14750. If there is a resolution to be implemented for that, this new encoding/json.Decoder.DisallowDuplicateFields() should consider case sensitivity as configured on the decoder.
Add
encoding/json.Decoder.DisallowDuplicateFields()
to let decoding of JSON object containing duplicate fields to error out.When JSON object contain duplicates, it is often result of human error. So it would be good for the standard library to provide an easy way to configure the decoder to allow detecting such user errors.
The text was updated successfully, but these errors were encountered: