1801Re: A couple of JSON questions
- Jan 2, 2012--- In firstname.lastname@example.org, "Paul C. Bryan" <paul.bryan@...> wrote:
>JSON does not impose such a limit.
> I'm hoping someone can help explain the rationale behind a couple of
> points in the JSON specification:
> 1. 8bit content-transfer-encoding for UTF-8
> RFC 4627: "When JSON is written in UTF-8, JSON is 8bit compatible." Why
> was 8bit selected rather than binary content-transfer-encoding? This
> limits the length of JSON strings to 994 octets.
> 2. Non-unique object membersThis was so that ECMAScript's eval function could act as a JSON parser. I think it should have been MUST.
> RFC 4627: "The names within an object SHOULD be unique." Why was SHOULD
> selected rather than MUST?
- << Previous post in topic Next post in topic >>