Re: [Json] serializing sequences of JSON values

Nico Williams <nico@cryptonector.com> Sun, 09 March 2014 22: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 B67511A022C for <json@ietfa.amsl.com>; Sun, 9 Mar 2014 15:37:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 4.209
X-Spam-Level: ****
X-Spam-Status: No, score=4.209 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, FRT_ADOBE2=2.455, HELO_MISMATCH_COM=0.553, HTML_MESSAGE=0.001, IP_NOT_FRIENDLY=0.334, 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 Uv3BXrxy1_zR for <json@ietfa.amsl.com>; Sun, 9 Mar 2014 15:37:06 -0700 (PDT)
Received: from homiemail-a89.g.dreamhost.com (unknown [69.163.253.184]) by ietfa.amsl.com (Postfix) with ESMTP id D805A1A0225 for <json@ietf.org>; Sun, 9 Mar 2014 15:37:06 -0700 (PDT)
Received: from homiemail-a89.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTP id DF5AB31805C for <json@ietf.org>; Sun, 9 Mar 2014 15:37:01 -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=vJRSWM+GQ9MNJZ1KbmzW xh6/MUQ=; b=slwt6rRHXeK/+k9a4Rb/a4lEhc5zzjnJwDejBYQP9XuwrUBAroUa 0ncDLZEl2SzHB6hGVV2UVjzvmck3hHfA607cXMShXtLtf+SGEh/VD9FbJfCwhXfB 6yh1q/gWNiGNg6vIE050KDGxIfgf4syflXygXLGGk9EC0+jN+eezaww=
Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTPSA id 903D5318059 for <json@ietf.org>; Sun, 9 Mar 2014 15:37:01 -0700 (PDT)
Received: by mail-wg0-f42.google.com with SMTP id y10so7722238wgg.13 for <json@ietf.org>; Sun, 09 Mar 2014 15:37:00 -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=d/NvExpfWeZWW5BeGZnqavIJ6x/CR07mtSEdny93gnM=; b=l1oTH71H0RXLnLLKSMrMX1jAUX6dzHz3IYAWVJ891K9ULTE2B3KqgpqOu/LzFVwq++ dYPGejVRvIDr5dDIniZA900nxMEVS9XKGPvU1ueJTFYvB0D9vnEmHE5J+o6mgWHCLX2Q TDXzKgPKSs3z/hwQrr/iK1rRCQxGTbGtUwbpuA1ANXC6CaRitd58wsuT/wY8lrOUPz7R PVx+JHgyaenTI86kYwUsMjZC5IkiSMd3kTC2l/YabrjUXo+FHt+ISwPHCgg5xX+oLHtL rSvFydYsz5l2tTrs3QrVq8SQfvr/KJr2vjL+x2MjbRNg3D87fz0LRatuJJ7Dp0KRfE/A F1AA==
MIME-Version: 1.0
X-Received: by 10.180.36.8 with SMTP id m8mr5707515wij.42.1394404620534; Sun, 09 Mar 2014 15:37:00 -0700 (PDT)
Received: by 10.216.199.6 with HTTP; Sun, 9 Mar 2014 15:37:00 -0700 (PDT)
Received: by 10.216.199.6 with HTTP; Sun, 9 Mar 2014 15:37:00 -0700 (PDT)
In-Reply-To: <c19534113ff9489abcc4402fae3c1f62@BL2PR02MB307.namprd02.prod.outlook.com>
References: <c19534113ff9489abcc4402fae3c1f62@BL2PR02MB307.namprd02.prod.outlook.com>
Date: Sun, 9 Mar 2014 17:37:00 -0500
Message-ID: <CAK3OfOigDS2CizGAtdRaQWbSgiJqw0Ogi-TPkWv35GjPB=CQGw@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Larry Masinter <masinter@adobe.com>
Content-Type: multipart/alternative; boundary=e89a8f5032e214881b04f434201f
Archived-At: http://mailarchive.ietf.org/arch/msg/json/Tff0su-7NB8KFvtwFIMu9QbKmJI
X-Mailman-Approved-At: Mon, 10 Mar 2014 00:55:34 -0700
Cc: Pete Resnick <presnick@qti.qualcomm.com>, Bjoern Hoehrmann <derhoermi@gmx.net>, Paul Hoffman <paul.hoffman@vpnc.org>, "json@ietf.org" <json@ietf.org>, "Paul E. Jones" <paulej@packetizer.com>, Tim Bray <tbray@textuality.com>, "Joe Hildebrand \(jhildebr\)" <jhildebr@cisco.com>, "Matt Miller \(mamille2\)" <mamille2@cisco.com>, Barry Leiba <barryleiba@computer.org>, "rfc7158@schmorp.de" <rfc7158@schmorp.de>
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: Sun, 09 Mar 2014 22:37:07 -0000

On Mar 9, 2014 4:16 AM, "Larry Masinter" <masinter@adobe.com> wrote:
>
> >  This means the serializer would have to be explicitly told whether to
insert space before or after
> > writing out data.
>
> If you want to write out a sequence of JSON values you would write them
out as an array with [] around and comma separators.

Doesn't work for log files...