Canonical JSON does not specify how to handle duplicate key values #1246
Labels
clarification
An area where the expected behaviour is understood, but the spec could do with being more explicit
Different implementations have different ideas on how to handle duplicate keys in JSON. They shouldn't appear in theory, but there's nothing to stop you from doing something like:
How this is handled varies between implementations (Go will take the last value, Swift will take the first etc).
We don't have anything in the spec that says how to handle this case appropriately.
(created from #1232)
The text was updated successfully, but these errors were encountered: