Re: [Json] What is a JSON-text? [REVISITED]

"Manger, James H" <James.H.Manger@team.telstra.com> Fri, 04 October 2013 01:46 UTC

Return-Path: <James.H.Manger@team.telstra.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AF0DC11E80D7 for <json@ietfa.amsl.com>; Thu, 3 Oct 2013 18:46:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.327
X-Spam-Level:
X-Spam-Status: No, score=0.327 tagged_above=-999 required=5 tests=[AWL=-1.227, BAYES_00=-2.599, FRT_ADOBE2=2.455, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, RELAY_IS_203=0.994]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iG0-FbrAORRo for <json@ietfa.amsl.com>; Thu, 3 Oct 2013 18:45:55 -0700 (PDT)
Received: from ipxbno.tcif.telstra.com.au (ipxbno.tcif.telstra.com.au [203.35.82.204]) by ietfa.amsl.com (Postfix) with ESMTP id 1350C21E80A8 for <json@ietf.org>; Thu, 3 Oct 2013 18:45:45 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.90,1030,1371045600"; d="scan'208";a="151616672"
Received: from unknown (HELO ipcani.tcif.telstra.com.au) ([10.97.216.200]) by ipobni.tcif.telstra.com.au with ESMTP; 04 Oct 2013 11:45:42 +1000
X-IronPort-AV: E=McAfee;i="5400,1158,7217"; a="115727233"
Received: from wsmsg3705.srv.dir.telstra.com ([172.49.40.203]) by ipcani.tcif.telstra.com.au with ESMTP; 04 Oct 2013 11:45:41 +1000
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by WSMSG3705.srv.dir.telstra.com ([172.49.40.203]) with mapi; Fri, 4 Oct 2013 11:45:41 +1000
From: "Manger, James H" <James.H.Manger@team.telstra.com>
To: Mark Nottingham <mnot@mnot.net>, Larry Masinter <masinter@adobe.com>
Date: Fri, 04 Oct 2013 11:43:59 +1000
Thread-Topic: [Json] What is a JSON-text? [REVISITED]
Thread-Index: Ac7AjCuEJ4guRzT0SM6oklMy2YqffAAE+TCg
Message-ID: <255B9BB34FB7D647A506DC292726F6E11531983AE1@WSMSG3153V.srv.dir.telstra.com>
References: <BF7E36B9C495A6468E8EC573603ED9411EF2B583@xmb-aln-x11.cisco.com> <CAHBU6iv7gT8nebFnz_mHQVZ3z8Kz+Pb8VRrSkMf44QRqWL8QjA@mail.gmail.com> <524DAEBF.1020509@drees.name> <CAK3OfOhRCCfNWHD-qSXOmswE7DL+QFefE_pvQO5g24NJ9q07hg@mail.gmail.com> <524DC3D5.4010806@drees.name> <C68CB012D9182D408CED7B884F441D4D34820FD913@nambxv01a.corp.adobe.com> <8426C572-0C47-4905-9BB9-8044087EC6CA@mnot.net>
In-Reply-To: <8426C572-0C47-4905-9BB9-8044087EC6CA@mnot.net>
Accept-Language: en-US, en-AU
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US, en-AU
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Cc: Nico Williams <nico@cryptonector.com>, "stefan@drees.name" <stefan@drees.name>, JSON WG <json@ietf.org>, Tim Bray <tbray@textuality.com>, "Matt Miller (mamille2)" <mamille2@cisco.com>
Subject: Re: [Json] What is a JSON-text? [REVISITED]
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 04 Oct 2013 01:46:08 -0000

> What Larry said.

I certainly agree with this part of what Larry said:
>> it fits within the convention of Internet Media Types to
>> accept extensions that are lexically distinguishable.

> The RFC is very clearly defined to not allow this. The reasons for
> allowing other top-level values make total sense, but they're not JSON.
> One language that uses JSON allows more, but that's not JSON, else
> Crock would have written something different down.

I thought Crock did write something different down -- at the next opportunity which was when specifying JSON in ECMAScript 5.1.

> Allowing more top-level values in text/json does *not* help interop; it
> hurts it.
> 
> OTOH doing it in another, separate media type (along with all of the
> other things we want to fix up) is perfectly workable; it improves
> interop for those who choose to use it.
> 
> Regards,
> 
> P.S. What we need to realise here is that just because we have the pen
> for bis, doesn't mean we can change the reality of deployed
> implementations, except with *very* gentle nudges over long periods of
> time. Or, put another way: <http://www.youtube.com/watch?v=409Pjtq7jzY>

I thought this would be a gentle nudge over a long period.

--
James Manger


> On 04/10/2013, at 7:09 AM, Larry Masinter <masinter@adobe.com> wrote:
> 
> > I think you might make more headway if you think about the primary
> role of 4627 and 4627bis
> > as registering Internet Media Types.  Consider, for example, having
> two media types
> >
> > text/json and text/json+
> >
> > the first of which is 4627 compatible, and the second (text/json+)
> allowing "non-container"
> > top level.
> >
> > Everything that is valid text/json would also be valid text/json+
> with the same interpretation.
> >
> > Or, you could keep the same internet media type and just declare it
> an extension,
> > like image/gif changed for GIF89a. Or Postscript changed and still
> kept
> > application/postscript. Yes, it's a change, no it fits within the
> convention of Internet
> > Media Types to accept extensions that are lexically distinguishable.
> >