Re: [Json] section 1 paragraph 2 on what JSON can represent

"Manger, James H" <James.H.Manger@team.telstra.com> Thu, 03 October 2013 06:34 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 2C04821F9AF8 for <json@ietfa.amsl.com>; Wed, 2 Oct 2013 23:34:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.901
X-Spam-Level:
X-Spam-Status: No, score=-0.901 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, 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 T1t9210bbF4i for <json@ietfa.amsl.com>; Wed, 2 Oct 2013 23:34:08 -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 1C2B321E8084 for <json@ietf.org>; Wed, 2 Oct 2013 23:33:12 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.90,1024,1371045600"; d="scan'208";a="151488864"
Received: from unknown (HELO ipcbni.tcif.telstra.com.au) ([10.97.216.204]) by ipobni.tcif.telstra.com.au with ESMTP; 03 Oct 2013 16:33:11 +1000
X-IronPort-AV: E=McAfee;i="5400,1158,7216"; a="166843051"
Received: from wsmsg3705.srv.dir.telstra.com ([172.49.40.203]) by ipcbni.tcif.telstra.com.au with ESMTP; 03 Oct 2013 16:32:11 +1000
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by WSMSG3705.srv.dir.telstra.com ([172.49.40.203]) with mapi; Thu, 3 Oct 2013 16:32:10 +1000
From: "Manger, James H" <James.H.Manger@team.telstra.com>
To: John Cowan <cowan@mercury.ccil.org>
Date: Thu, 03 Oct 2013 16:32:09 +1000
Thread-Topic: [Json] section 1 paragraph 2 on what JSON can represent
Thread-Index: Ac6/9H2RFf3RiMMBQuKWdCv0EmQkbAAB69lw
Message-ID: <255B9BB34FB7D647A506DC292726F6E11531983356@WSMSG3153V.srv.dir.telstra.com>
References: <BF7E36B9C495A6468E8EC573603ED9411EF1BB0B@xmb-aln-x11.cisco.com> <CAChr6SyznBktmOLpT-EiZ5Nm_0jZ16M0tOo4aZ_jhSDb=HHDqg@mail.gmail.com> <23C96FBA-3419-4C97-A075-462F7443013A@vpnc.org> <CAHBU6is2WzCNCwa0PYMM1Hr3Lij0GxWkVtVUan9=JPbvv0YCZg@mail.gmail.com> <CAChr6Sw72kxm8qJiDu=XMnARCttQPc5GNRQaXz4Xw9y+6-3=Mg@mail.gmail.com> <421F79DF-0B88-4E24-8666-189228E6E189@vpnc.org> <524C73B7.1060104@att.com> <524C76B0.9040900@att.com> <255B9BB34FB7D647A506DC292726F6E115318CAD1F@WSMSG3153V.srv.dir.telstra.com> <20131003045309.GN30371@mercury.ccil.org>
In-Reply-To: <20131003045309.GN30371@mercury.ccil.org>
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: JSON WG <json@ietf.org>
Subject: Re: [Json] section 1 paragraph 2 on what JSON can represent
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: Thu, 03 Oct 2013 06:34:19 -0000

> > There was a substantial discussion
> > <http://www.ietf.org/mail-archive/web/json/current/msg00553.html>;
> > half-a-dozen people strongly supported extending 4627-JSON to be
> > compatible with ECMA-JSON; about 3 were strongly against; and a
> handful
> > seemed to be in the middle.

> It doesn't seem to fit with the current mission, which is not to extend
> JSON but to clarify the spec and add warnings about compatibility
> issues.

This issue fits the charter perfectly. It is a significant inconsistency in the JSON community.

  It is acknowledged that there are differences between RFC 4627 and the
  ECMAScript specification in the rules for parsing JSON. Any changes that
  break compatibility with existing implementations of either RFC 4627 or
  the ECMAScript specification will need to have very strong justification
  and broad support. All differences between RFC 4627 or the current
  ECMAScript specification will be documented in the new RFC.

The last sentence above says 4627-bis needs to document the text=obj/array vs text=any-value difference. The choice is to document it as a difference to ECMAScript or as a difference to 4627. However it is documented, I hope JSON library developers get the message not to bother enforcing the text=obj/array restriction; and JSON message designers notice that they don’t need to add an extra wrapping layer (a la SOAP) when they want to exchange arbitrary JSON values.


> There are a whole mess of common extensions I'd rather do before I do
> this.

Well this is the primary extension that is consistently supported by ECMAScript and many implementations so I suggest this should be a priority before a "whole mess of common extensions".

>  For one thing, JSON numbers aren't self-delimiting, though strings
> and true/false/null are.

So what? It is hard to imagine how numbers not being self-delimiting will break anything that wasn’t already dodgy.

--
James Manger