[Json] serializing sequences of JSON values

Larry Masinter <masinter@adobe.com> Sun, 09 March 2014 04:27 UTC

Return-Path: <masinter@adobe.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 EFE5A1A01BB for <json@ietfa.amsl.com>; Sat, 8 Mar 2014 20:27:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.831
X-Spam-Level:
X-Spam-Status: No, score=-1.831 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_SORBS_WEB=0.77, SPF_HELO_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 x9KrkIH_C5jt for <json@ietfa.amsl.com>; Sat, 8 Mar 2014 20:27:16 -0800 (PST)
Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2lp0237.outbound.protection.outlook.com [207.46.163.237]) by ietfa.amsl.com (Postfix) with ESMTP id 27FBA1A01AF for <json@ietf.org>; Sat, 8 Mar 2014 20:27:15 -0800 (PST)
Received: from BL2PR02MB307.namprd02.prod.outlook.com (10.141.91.21) by BL2PR02MB324.namprd02.prod.outlook.com (10.141.91.26) with Microsoft SMTP Server (TLS) id 15.0.888.9; Sun, 9 Mar 2014 04:27:09 +0000
Received: from BL2PR02MB307.namprd02.prod.outlook.com ([10.141.91.21]) by BL2PR02MB307.namprd02.prod.outlook.com ([10.141.91.21]) with mapi id 15.00.0893.001; Sun, 9 Mar 2014 04:27:09 +0000
From: Larry Masinter <masinter@adobe.com>
To: "Paul E. Jones" <paulej@packetizer.com>, "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>, Tim Bray <tbray@textuality.com>
Thread-Topic: serializing sequences of JSON values
Thread-Index: Ac87TsixeUQAkrJATR2RmgrqNDBDCA==
Date: Sun, 9 Mar 2014 04:27:08 +0000
Message-ID: <c19534113ff9489abcc4402fae3c1f62@BL2PR02MB307.namprd02.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [204.239.250.1]
x-forefront-prvs: 0145758B1D
x-forefront-antispam-report: SFV:NSPM; SFS:(10019001)(6009001)(428001)(199002)(189002)(49866001)(74662001)(47736001)(85306002)(50986001)(47446002)(74502001)(47976001)(85852003)(83072002)(80022001)(95416001)(66066001)(74876001)(65816001)(4396001)(81816001)(92566001)(558084003)(95666003)(2656002)(90146001)(56816005)(87266001)(81342001)(69226001)(74316001)(81542001)(87936001)(74366001)(77982001)(76576001)(76786001)(80976001)(59766001)(76796001)(79102001)(93136001)(97186001)(83322001)(76176001)(86362001)(97336001)(93516002)(33646001)(63696002)(31966008)(74706001)(94946001)(54356001)(53806001)(54316002)(76482001)(51856001)(81686001)(46102001)(94316002)(24736002); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR02MB324; H:BL2PR02MB307.namprd02.prod.outlook.com; CLIP:204.239.250.1; FPR:DC97F5DF.A93403E3.2E3B38A.DC6FA2F2.200A6; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (: adobe.com does not designate permitted sender hosts)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: adobe.com
Archived-At: http://mailarchive.ietf.org/arch/msg/json/f0J7-ZrvzO0ig6tbu5LUXjvWbKE
X-Mailman-Approved-At: Sun, 09 Mar 2014 01:16:03 -0800
Cc: Pete Resnick <presnick@qti.qualcomm.com>, Bjoern Hoehrmann <derhoermi@gmx.net>, Paul Hoffman <paul.hoffman@vpnc.org>, "json@ietf.org" <json@ietf.org>, "Matt Miller \(mamille2\)" <mamille2@cisco.com>, Barry Leiba <barryleiba@computer.org>, "rfc7158@schmorp.de" <rfc7158@schmorp.de>
Subject: [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 04:27:19 -0000

>  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.