Re: [Json] serializing sequences of JSON values

Phillip Hallam-Baker <hallam@gmail.com> Sat, 15 March 2014 00:32 UTC

Return-Path: <hallam@gmail.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 CA7621A012B for <json@ietfa.amsl.com>; Fri, 14 Mar 2014 17:32:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
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 E_3zm_TR69ci for <json@ietfa.amsl.com>; Fri, 14 Mar 2014 17:32:49 -0700 (PDT)
Received: from mail-qg0-x230.google.com (mail-qg0-x230.google.com [IPv6:2607:f8b0:400d:c04::230]) by ietfa.amsl.com (Postfix) with ESMTP id D67B31A0121 for <json@ietf.org>; Fri, 14 Mar 2014 17:32:48 -0700 (PDT)
Received: by mail-qg0-f48.google.com with SMTP id j107so9511934qga.7 for <json@ietf.org>; Fri, 14 Mar 2014 17:32:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3QHcmyC8302a3Sb0pIogG/trL12MAwECzf/uMtIL0g0=; b=e4x5eAmx5mO7xjnmnqNcsZund5FTGfsnrR0mheOxezu/ssk3ZQBPF8RnD3vyhrReIv oCfw5pWVZNfNLNmpna2W642x3dS7Tt37jRvA7LycFcVviYTFqoYnK5eUGr4k8L4cjyEf Sb0gPmO9ie+wT5YwNRY7p+fejUL8yWmkFdnk2eLExdAzo67cGdImjbXt/on6a43LJr1E C6DL952W+MuyFpPvzaggKGfnr/unuw0M3MNA+6wr15VRf6OFOksKUl1bHXsoEllIQbJr r3fbNmWGSmwdQgNVk85C2gdJWfuZTEOEKuTQ87w5fJ5i83OAeUKSFTjJhJTqXgq/bPB1 fypg==
MIME-Version: 1.0
X-Received: by 10.229.183.200 with SMTP id ch8mr13446008qcb.17.1394843561703; Fri, 14 Mar 2014 17:32:41 -0700 (PDT)
Received: by 10.140.96.107 with HTTP; Fri, 14 Mar 2014 17:32:41 -0700 (PDT)
In-Reply-To: <CAHBU6itS2tuXFh+5aq2Ms2JNd_4kAegW_MnKw558RiBDC7ECqw@mail.gmail.com>
References: <em2c025504-6532-4513-a339-3d71c4cdfbda@helsinki> <5FC8412F-30E5-4F80-AB63-6715B1053098@vpnc.org> <58a4b20f768b484c94a850c4eba71ec5@BL2PR02MB307.namprd02.prod.outlook.com> <53222FFC.8070204@cisco.com> <5322714F.6080508@it.aoyama.ac.jp> <CAGrxA26HRqa+R580qfEMXU_JGid-UDzwwmQigOkOW0OWuA9mpg@mail.gmail.com> <CAK3OfOier6uQ4nVuuCP+uWV+eRbYh8qqAi4FVdWqNLHOh94L+A@mail.gmail.com> <CAGrxA275TwvbUkAT7tp9NtgTDN1WwPNP33aKmAZdB7QJkSY0CA@mail.gmail.com> <CAK3OfOj3e7pqj5R-ggHhXfaN5p1CG+6djiLizaRE2nJnF1ivGA@mail.gmail.com> <CAK3OfOhYxRR1ii3=eezXAmUR1ArpZDmAzbjRdHL2ASQ7Y1deDw@mail.gmail.com> <CAGrxA270ARHz-XepgY-4PpTGqJG+4xGbFQ15kWYXPs_52vHtEg@mail.gmail.com> <3DE14AC0-BF6F-4BFB-AF47-53BD3513BA05@tzi.org> <CAHBU6itS2tuXFh+5aq2Ms2JNd_4kAegW_MnKw558RiBDC7ECqw@mail.gmail.com>
Date: Fri, 14 Mar 2014 20:32:41 -0400
Message-ID: <CAMm+Lwi9_ifrMAcugCtBgatZ6nsZ62nuOKX=7vHy-sKe_BB19w@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Tim Bray <tbray@textuality.com>
Content-Type: multipart/alternative; boundary="001a1133916c0344fb04f49a5311"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/UMs3yJ0XkkcaGsex_WD1mro_ORY
Cc: Nico Williams <nico@cryptonector.com>, Carsten Bormann <cabo@tzi.org>, "json@ietf.org" <json@ietf.org>, Tatu Saloranta <tsaloranta@gmail.com>, Matt Miller <mamille2@cisco.com>
Subject: Re: [Json] serializing sequences of JSON values
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: Sat, 15 Mar 2014 00:32:51 -0000

On Fri, Mar 14, 2014 at 7:20 PM, Tim Bray <tbray@textuality.com> wrote:

> I'm strongly negative about requiring people to avoid newlines in their
> JSON in order to be able to string chunks of JSON together into a stream.
>  JSON is unambiguously and easily parsable.  To talk in abnf, I don't think
> we should be satisfied with anything less than this:
>
> JSON-sequence = JSON-text *(text-separator JSON-text)
> text-separator = 1*(  %x20 / %x09 / %x0A / %x0D )
>
>
JSON-sequence = JSON-text *(text-separator JSON-text)
text-separator = 1*(  %x20 / %x09 / %x0A / %x0D / %2C)


-- 
Website: http://hallambaker.com/