Re: [Json] Proposal: JSON text sequence MIME type and Proposed Standard

Nico Williams <nico@cryptonector.com> Tue, 11 March 2014 23:05 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 A82871A088E for <json@ietfa.amsl.com>; Tue, 11 Mar 2014 16:05:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.753
X-Spam-Level: *
X-Spam-Status: No, score=1.753 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, 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 Kb5IAgRI3Xys for <json@ietfa.amsl.com>; Tue, 11 Mar 2014 16:05:01 -0700 (PDT)
Received: from homiemail-a84.g.dreamhost.com (unknown [69.163.253.179]) by ietfa.amsl.com (Postfix) with ESMTP id B891C1A087F for <json@ietf.org>; Tue, 11 Mar 2014 16:05:01 -0700 (PDT)
Received: from homiemail-a84.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a84.g.dreamhost.com (Postfix) with ESMTP id DD0C61DE060 for <json@ietf.org>; Tue, 11 Mar 2014 16:04:55 -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=XZYVNGjs0V4A3+nP+x8/ XJyZF9U=; b=N33YGVIHIXdtTGpMHAS/w4ztUS3lHUZdj6FjsEOZNGq7fQa/L2Es 6b5hWyBBYj+8K/8rQu12rgNFD7y/sE3rneZOsmqITBNEP0E00vz64hbVEemo8jYe hoUA71nU+wWANKeOs2kTldH9aKaZ/7nSkCiQr2K9NEwNHJ7f0+1Xfhk=
Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a84.g.dreamhost.com (Postfix) with ESMTPSA id 90E491DE005 for <json@ietf.org>; Tue, 11 Mar 2014 16:04:55 -0700 (PDT)
Received: by mail-wg0-f48.google.com with SMTP id l18so6447737wgh.7 for <json@ietf.org>; Tue, 11 Mar 2014 16:04:54 -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=OBNIna1ljwFTcX2HkpljxpIARdoifipQY3gjTa59umg=; b=WitZPndLaGnbhJb81kcXwfB0yH/KhW1/7bm7MsSNsooBTZ3XP2uq3fdRBpO4vR9NGr ebHpTawgxVuDwlKkv+Nut2i2ci4ztgtt3MVkeUAl7639ZedxIZJsg+V83EPqNMZvDdRt srRO0omJ+z2YElkc9oy1A298jGI7tCsE6ogkihHBOfgVgQAQkxhNQpQovDklTN7teL2j 5fSxD48Eh9XVRQGn8fGEaOFxeh87Fk0qN9u9UfIDvPj4g/HQ8pEHwNzesyJSc6q6+Pfx sfb60lAcfF+xYxzxm7RaZ9WsjbdoeRWKuIzEeOw6y6F6/S1VwbvOQ8L1u2atf+Xxnugi ob3A==
MIME-Version: 1.0
X-Received: by 10.194.85.75 with SMTP id f11mr9793502wjz.47.1394579094386; Tue, 11 Mar 2014 16:04:54 -0700 (PDT)
Received: by 10.216.199.6 with HTTP; Tue, 11 Mar 2014 16:04:54 -0700 (PDT)
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E1153F8CA38B@WSMSG3153V.srv.dir.telstra.com>
References: <255B9BB34FB7D647A506DC292726F6E1153F8CA38B@WSMSG3153V.srv.dir.telstra.com>
Date: Tue, 11 Mar 2014 18:04:54 -0500
Message-ID: <CAK3OfOjZ4nDQ7OBpbF-0D9dK9+08MhXiRe9VxKvWTXwBosd-RA@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/Mw2OGkp4DD2OaEgEnmVx8blPMEA
Cc: "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] Proposal: JSON text sequence MIME type and Proposed Standard
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: Tue, 11 Mar 2014 23:05:03 -0000

On Tue, Mar 11, 2014 at 6:01 PM, Manger, James
<James.H.Manger@team.telstra.com> wrote:
> A short spec on JSON sequences is a good idea, Nico.

I'll submit an I-D soon.

> I agree that a newline is the best separator for creators to include, and always including it is best.
>
> Some (most?) receivers will be more lenient and accept values separated by any whitespace, or with no separator (for objects, arrays, and/or strings). Perhaps it is best for interop to say receivers MUST be this lenient.

Good point.  Sequence parsers MUST be able to handle newline text
separators and SHOULD be able to handle other whitespace, as well as
no separator in the unambiguous cases.  Sequence encoders SHOULD use a
newline separator and MAY use other whitespace (with some guidance as
to why newline is best); no need to mention when the separator may be
omitted.

Nico
--