Duplicate keys are accepted and one value silently disappears
{"port": 8080, "port": 9090}RFC 8259 says names SHOULD be unique and does not say what happens when they are not. JavaScript and Python keep the last, some Go and Rust decoders error, and others keep the first. The document genuinely has no single meaning, and no parser will tell you — JSON.parse returns one port and no warning.
json.duplicate_key · run this example