JSON
John Cowan
cowan at mercury.ccil.org
Mon Mar 18 17:14:28 CET 2013
Stephane Bortzmeyer scripsit:
> > It hardly matters, since this is valid JSON:
>
> No, it is not. RFC 4627:
>
> > The names within an object SHOULD be unique.
SHOULD, alas, is not MUST.
> The question was discussed a lot of the IETF meeting in Orlando last
> week. This is because ECMAscript standard does not say exactly the
> same thing (one of the main differences between the two JSON
> specifications) and there is a project to make an IETF JSON working
> group to produce a 4627bis.
I hope so. There is another known problem: by my reading of the
RFC, "\D800" is not a valid string, because U+D800 is not a Unicode
character. Crockford has said, however, that he intended it to be
valid: that is, JSON strings, like JavaScript strings, are sequences
of UTF-16 codepoints rather than of characters.
--
John Cowan http://ccil.org/~cowan cowan at ccil.org
Economists were put on this planet to make astrologers look good.
--Leo McGarry
More information about the Ietf-languages
mailing list