Re: [Json] serializing sequences of JSON values

Nico Williams <nico@cryptonector.com> Fri, 14 March 2014 07:41 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 3179D1A00A5 for <json@ietfa.amsl.com>; Fri, 14 Mar 2014 00:41:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.043
X-Spam-Level:
X-Spam-Status: No, score=-1.043 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, IP_NOT_FRIENDLY=0.334] 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 1XEvFG6-IwBs for <json@ietfa.amsl.com>; Fri, 14 Mar 2014 00:41:18 -0700 (PDT)
Received: from homiemail-a102.g.dreamhost.com (mysql.benrbradley.com [69.163.253.146]) by ietfa.amsl.com (Postfix) with ESMTP id 42FB71A0059 for <json@ietf.org>; Fri, 14 Mar 2014 00:41:18 -0700 (PDT)
Received: from homiemail-a102.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a102.g.dreamhost.com (Postfix) with ESMTP id A80BA2005D10D for <json@ietf.org>; Fri, 14 Mar 2014 00:41:11 -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=s8nPBNNAE5UOeJegXXEa rntId5g=; b=xXjYuTysPD7xcQPlh0iqDWkPLb+mpAKDHn9aw0XNLc4HC2IQzUL9 fmhqspU4OWl/6oFuURtfC4huytbv/JddZNSsPeR9cubeU2EWJNpYI/IihWjeJ0Q0 U+iMCzQ+ftVBEXYiqHWbXLq+UT9q9TB3Iapw8iGBSnfvcrEzUGSfXFI=
Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a102.g.dreamhost.com (Postfix) with ESMTPSA id 5BC5F2005D10A for <json@ietf.org>; Fri, 14 Mar 2014 00:41:11 -0700 (PDT)
Received: by mail-wi0-f171.google.com with SMTP id hn9so4935919wib.16 for <json@ietf.org>; Fri, 14 Mar 2014 00:41:10 -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=s7FbpJjbgE1BB6jUZh5MLsYb0BhsbVMZajLqa56jY/Y=; b=hNEnbK0aX3ZtmPl8VfDu9iLoSE6p2ZS/1qhrnPzX3D7IZ9vNKfs4U0+m2RGQBrhSGL ZNVRukJqsXUM5JBcdA5ikB+t2423L7YtbeD8DQUiagHspGyYHBV8A5NGV1gb8ikPIJ7+ 2ex3mvv68C4xz0KWQccmHxiE/ZYuKZNcqlk69WR51Pa6B6ee5TQI/Co0cdsg0Cbj4013 /1NVFN5LpfWQVka9QD0KSQFsbUVvlIlQ6bIY1Hss+//csSG53t/SFiUpNjkiQY6+EXLm 5R3V0PGUW0kCg6E7wF64w3OEHwbXVA/8I/meXgfw5DNH67aKgp+/nHUeVy04GFSyWVbA fzog==
MIME-Version: 1.0
X-Received: by 10.180.97.72 with SMTP id dy8mr4865705wib.5.1394782869993; Fri, 14 Mar 2014 00:41:09 -0700 (PDT)
Received: by 10.216.199.6 with HTTP; Fri, 14 Mar 2014 00:41:09 -0700 (PDT)
Received: by 10.216.199.6 with HTTP; Fri, 14 Mar 2014 00:41:09 -0700 (PDT)
In-Reply-To: <CAGrxA275TwvbUkAT7tp9NtgTDN1WwPNP33aKmAZdB7QJkSY0CA@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>
Date: Fri, 14 Mar 2014 02:41:09 -0500
Message-ID: <CAK3OfOj3e7pqj5R-ggHhXfaN5p1CG+6djiLizaRE2nJnF1ivGA@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Tatu Saloranta <tsaloranta@gmail.com>
Content-Type: multipart/alternative; boundary="f46d04430670813db504f48c319f"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/nKFv75oKeIgbBP2p_dK_D8pyEMQ
Cc: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>, Matt Miller <mamille2@cisco.com>, json@ietf.org
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: Fri, 14 Mar 2014 07:41:19 -0000

On Mar 14, 2014 12:27 AM, "Tatu Saloranta" <tsaloranta@gmail.com> wrote:
> On Fri, Mar 14, 2014 at 4:21 AM, Nico Williams <nico@cryptonector.com>
wrote:
>> That's how jq handles JSON text sequences.  It's really quite simple.
>>
>
> Yes, absolutely. This is also one area where otherwise frustrating
feature of JSON -- requirement that linefeeds must be quoted in text values
-- helps.

Indeed!  That's the best reason to recommended the use of newline for
maximum interop, maybe even require it.