Re: JSON headers

On 2016-07-12 00:35, Carsten Bormann wrote:
>> Inside a JSON *object*, the wire format allows multiple instances of the
>> same key (member name), and the recipient behavior for these cases is
>> undefined.
>
> That is a rather liberal use of "allows".  It definitely not "allowed",
> but it is sure *possible* to send malformed JSON.

It is allowed by the structure of the *wire format*.

The *specification* has a "SHOULD have unique names", but then, that's 
only a SHOULD (exactly because we know we can't rely on it, otherwise we 
wouldn't have the prose about what recipients can do with it).

 > ...

Best regards, Julian

Received on Tuesday, 12 July 2016 04:46:49 UTC