Re: [Json] draft-williams-json-text-sequence-00
Nico Williams <nico@cryptonector.com> Mon, 17 March 2014 15:37 UTC
Return-Path: <nico@cryptonector.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 491281A041E for <json@ietfa.amsl.com>; Mon, 17 Mar 2014 08:37:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.1
X-Spam-Level: ***
X-Spam-Status: No, score=3.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FH_RELAY_NODNS=1.451, FM_FORGED_GMAIL=0.622, HELO_MISMATCH_COM=0.553, IP_NOT_FRIENDLY=0.334, RCVD_IN_BL_SPAMCOP_NET=1.347, RDNS_NONE=0.793] 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 a1110mRvii2r for <json@ietfa.amsl.com>; Mon, 17 Mar 2014 08:37:42 -0700 (PDT)
Received: from homiemail-a71.g.dreamhost.com (unknown [69.163.253.175]) by ietfa.amsl.com (Postfix) with ESMTP id 1089F1A02FD for <json@ietf.org>; Mon, 17 Mar 2014 08:37:42 -0700 (PDT)
Received: from homiemail-a71.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a71.g.dreamhost.com (Postfix) with ESMTP id 4E2CA428082 for <json@ietf.org>; Mon, 17 Mar 2014 08:37:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=Y7+9GFYLGmMpfDaCVF8u USUEbig=; b=m3+tY8woRTcND8Qg/OWzg2iCYvq5aOghNT3I0WjB+WVve2LHOBQZ E1JLBQ/kIsAZpE/qvBcDaFv+BOtJi+Kx8O2GkvuKU4/sSFc9S4dBa5kZkicpY/wk FS9PO7cLSR7D6NUW58lf8ur6wvld8C1BlfOpX0d1dU8+ODjU6fJ1PQk=
Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a71.g.dreamhost.com (Postfix) with ESMTPSA id EF6A0428072 for <json@ietf.org>; Mon, 17 Mar 2014 08:37:33 -0700 (PDT)
Received: by mail-wg0-f45.google.com with SMTP id l18so4687821wgh.28 for <json@ietf.org>; Mon, 17 Mar 2014 08:37:32 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Fn+M/sqvRuk36EzuzzXrlzvFYEG7tMTL9/jK52vgD+o=; b=DSm2FNWkrNYPO4IK2wKOK/nIZTlpbQYzMl4alBwQzDMYG644h66Lj7mmAxAiiu2OC4 A5FddEpzlVQ1oru2UL/rM7pgImOjt1oGD6Uv91ZnvjhSYq45OsOMO5F35AWAeLOkJ4bt tdkolC8rRag8kKX9xlQ5e7iywoxto5o2d5hR2m8j/P01F/7lEj1Rn9cWXs8hUf60bbnu un6QQYcmFUCzdFtG+tsxiQA9ekP9NqXZrbS7YJQfEPzpSxRZMUmTD8nTvS4PexwDc/Xh Q4tZxMVTMzAxUv9LeJc2FJvLViQYor13rOOY8gkiJiTV4Oe7WGhlbYsGkAE33nVxlCx4 R0Yg==
MIME-Version: 1.0
X-Received: by 10.194.84.240 with SMTP id c16mr34440wjz.95.1395070652688; Mon, 17 Mar 2014 08:37:32 -0700 (PDT)
Received: by 10.216.199.6 with HTTP; Mon, 17 Mar 2014 08:37:32 -0700 (PDT)
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E115404DC02A@WSMSG3153V.srv.dir.telstra.com>
References: <CAK3OfOg7Ly=unmjJY2E34LZT1DyqZ9VFUs4gtNNEiMJGA9cQKA@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E115404DC02A@WSMSG3153V.srv.dir.telstra.com>
Date: Mon, 17 Mar 2014 10:37:32 -0500
Message-ID: <CAK3OfOiTOCB3F1J95YEvLzzVc_93=JZ8kyiEdosXqs7KoY_m8Q@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/rLyqcpjAUwU8marlorgCXT8nuMg
Cc: "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] draft-williams-json-text-sequence-00
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: Mon, 17 Mar 2014 15:37:43 -0000
On Mon, Mar 17, 2014 at 12:47 AM, Manger, James <James.H.Manger@team.telstra.com> wrote: >> Title: JavaScript Object Notation (JSON) Text Sequences >> http://tools.ietf.org/html/draft-williams-json-text-sequence-00 > > Nico, > > Did you really mean to allow commas as separators (%2C in ABNF)? No, I hadn't (I'd just argued in response to Phillip that it was a bad idea). However, I'm not as convinced of it as I'd like to be. I think there may indeed be some value in it. Suppose you expect a JSON text to be a very large (possibly never-ending) array... you might parse it as a sequence by skipping the initial '[' and going from there. You'd get streaming parsing of the sequence without streaming parsing of the individual JSON texts. That seems worthwhile as a way of dealing with any cases that might exist of very large arrays. > I would be tempted to say: > > A JSON sequence is a concatenation of any number of JSON values, > remembering that each value (matching <JSON-text> in [RFC7159]) > can be preceded and followed by insignificant whitespace. > Whitespace MUST be present between two JSON values when both > values are true, false, null, or a number. Whitespace between > values is allowed, but not required, when either value is an > object, array, or string. I like that, but it's important that the separator always _follow_ each text. Whitespace may also precede a text, sure, but that's not important here. > Concatenating JSON values, each terminated with a newline (U+000A), > is a simple way to match the syntax rules. Yes. > An empty text and texts consisting only of whitespace are both valid > JSON sequences of zero JSON values. s/empty text/empty sequence/, but yes, that's nice. Nico --
- [Json] draft-williams-json-text-sequence-00 Nico Williams
- Re: [Json] draft-williams-json-text-sequence-00 John Cowan
- Re: [Json] draft-williams-json-text-sequence-00 Phillip Hallam-Baker
- Re: [Json] draft-williams-json-text-sequence-00 Nico Williams
- Re: [Json] draft-williams-json-text-sequence-00 Nico Williams
- Re: [Json] draft-williams-json-text-sequence-00 Phillip Hallam-Baker
- Re: [Json] draft-williams-json-text-sequence-00 Paul Hoffman
- Re: [Json] draft-williams-json-text-sequence-00 Joe Hildebrand (jhildebr)
- Re: [Json] draft-williams-json-text-sequence-00 Nico Williams
- Re: [Json] draft-williams-json-text-sequence-00 Manger, James
- Re: [Json] draft-williams-json-text-sequence-00 Nico Williams