Re: [Json] New JSON Text Sequence I-D submitted

"Manger, James" <James.H.Manger@team.telstra.com> Tue, 29 April 2014 00:41 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A309B1A8852 for <json@ietfa.amsl.com>; Mon, 28 Apr 2014 17:41:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.202
X-Spam-Level:
X-Spam-Status: No, score=-0.202 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, RCVD_IN_DNSWL_NONE=-0.0001, RELAY_IS_203=0.994] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zDrFIbOfQQoo for <json@ietfa.amsl.com>; Mon, 28 Apr 2014 17:41:28 -0700 (PDT)
Received: from ipxano.tcif.telstra.com.au (ipxano.tcif.telstra.com.au [203.35.82.200]) by ietfa.amsl.com (Postfix) with ESMTP id AA2811A8844 for <json@ietf.org>; Mon, 28 Apr 2014 17:41:27 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.97,948,1389704400"; d="scan'208";a="199910276"
Received: from unknown (HELO ipcbni.tcif.telstra.com.au) ([10.97.216.204]) by ipoani.tcif.telstra.com.au with ESMTP; 29 Apr 2014 10:41:25 +1000
X-IronPort-AV: E=McAfee;i="5600,1067,7422"; a="218115262"
Received: from wsmsg3705.srv.dir.telstra.com ([172.49.40.203]) by ipcbni.tcif.telstra.com.au with ESMTP; 29 Apr 2014 10:41:25 +1000
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by WSMSG3705.srv.dir.telstra.com ([172.49.40.203]) with mapi; Tue, 29 Apr 2014 10:41:24 +1000
From: "Manger, James" <James.H.Manger@team.telstra.com>
To: Nico Williams <nico@cryptonector.com>, "json@ietf.org" <json@ietf.org>
Date: Tue, 29 Apr 2014 10:41:23 +1000
Thread-Topic: [Json] New JSON Text Sequence I-D submitted
Thread-Index: Ac9jF8HYObffFIbBS+aI0nC/1vm5bwAJbbJA
Message-ID: <255B9BB34FB7D647A506DC292726F6E115456D2132@WSMSG3153V.srv.dir.telstra.com>
References: <CAK3OfOgLJDEFK_K16WhX9dm21a25r7Wr4EmZcqbGa7CLdqYWGw@mail.gmail.com>
In-Reply-To: <CAK3OfOgLJDEFK_K16WhX9dm21a25r7Wr4EmZcqbGa7CLdqYWGw@mail.gmail.com>
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
Archived-At: http://mailarchive.ietf.org/arch/msg/json/W875G4VmWzQj0D8IbPL5k2t7IZQ
Subject: Re: [Json] New JSON Text Sequence I-D submitted
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
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: Tue, 29 Apr 2014 00:41:29 -0000

> https://datatracker.ietf.org/doc/draft-ietf-json-text-sequence/

Short & simple — looks good.

1.
One missing feature is that a file containing only whitespace should be a valid JSON text sequence. Suggested changes:

FROM:  JSON-sequence = *(JSON-text 1*(ws))
TO  :  JSON-sequence = *(ws) *(JSON-text 1*(ws))

P.S. Do you need the brackets in *(ws)?

FROM:  A JSON text sequence is a sequence of JSON texts
TO  :  A JSON text sequence is a sequence of zero, one, or more JSON texts


2.
We can't have a <ws> ABNF production that is different from RFC7159 JSON. ws in JSON is unfortunate, but we have to live with it.
json-seq:  ws =    %x20 / %x09 / %x0A / %x0D
json    :  ws = *( %x20 / %x09 / %x0A / %x0D )

I would be tempted to write the ABNF using <value>, instead of <JSON-text>.

  JSON-sequence = *whitespace *(value 1*whitespace)
  whitespace = %x20 / %x09 / %x0A / %x0D
  value = <given by RFC7159>

--
James Manger