3 ms·
JMAP explicitly requires I-JSON, which is RFC 7493, and restricts this exact case: > Objects in I-JSON messages MUST NOT have members with duplicate names.
by chrismorgan 7y ago
JMAP explicitly requires I-JSON, which is RFC 7493, and restricts this exact case:
> Objects in I-JSON messages MUST NOT have members with duplicate names.
- jsnell 7y agoThanks! I was commenting just from the perspective of JSON in general, didn't check the JMAP spec. (Does JMAP require validating that the input is valid I-JSON? Or does it just say that a JMAP endpoint is allowed to assume it's I-JSON, but doesn't need to validate it?)
- chrismorgan 7y agoIf the input is not valid I-JSON, a JMAP server that does not reject it is non-compliant. (Related: Postel’s law is wrong. See https://tools.ietf.org/html/draft-iab-protocol-maintenance-03 https://tools.ietf.org/html/draft-iab-protocol-maintenance-0... for some explanation.)