[eeps] JSON
Richard O'Keefe
ok@REDACTED
Tue Jul 5 02:24:09 CEST 2011
We were having a debate about the best way to handle duplicate keys
in JSON, and I quoted the sentence from RFC 4627 section 2.2 where
it says
The names within an object SHOULD be unique.
I asked Douglas Crockford, the author of the RFC, about this, and
his reply was
The RFC SHOULD have said MUST.
That is, the intention of the RFC is that JSON data should never
include duplicate keys, so it really should not matter much what
we do when parsing such data.
Now comes the practical question: how often does this _actually_
occur?
More information about the eeps
mailing list