Re: [Json] I-JSON Tpic #2: Top-Level

Nico Williams <nico@cryptonector.com> Thu, 01 May 2014 00:40 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 ECBAA1A0981 for <json@ietfa.amsl.com>; Wed, 30 Apr 2014 17:40:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.044
X-Spam-Level:
X-Spam-Status: No, score=-1.044 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, 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 OsXBlQUx-KiT for <json@ietfa.amsl.com>; Wed, 30 Apr 2014 17:40:10 -0700 (PDT)
Received: from homiemail-a34.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id CBC5A1A096A for <json@ietf.org>; Wed, 30 Apr 2014 17:40:10 -0700 (PDT)
Received: from homiemail-a34.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a34.g.dreamhost.com (Postfix) with ESMTP id 4623F10060 for <json@ietf.org>; Wed, 30 Apr 2014 17:40:09 -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:content-transfer-encoding; s= cryptonector.com; bh=eufqkg68olKJVt/HaxuQIyzvK7g=; b=P7Tw0kS0crn +b1gNmnN2O0pZ1etQecg75fSx9yLdDSNGt5/cJM/7b1dDPPBfxS8uNdSFsq0JYgh PK27z1cl9iu4U6AnaJasG21Zk2iWj73ZgyQl5XhL8HBaUntyUDIXovmkTKgXnKjD PQmsZXzlkN/dsBOsxjOUXfsmZLypBSPk=
Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a34.g.dreamhost.com (Postfix) with ESMTPSA id EC46110059 for <json@ietf.org>; Wed, 30 Apr 2014 17:40:08 -0700 (PDT)
Received: by mail-wi0-f176.google.com with SMTP id f8so3808448wiw.9 for <json@ietf.org>; Wed, 30 Apr 2014 17:40:07 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.180.160.166 with SMTP id xl6mr6059120wib.42.1398904807693; Wed, 30 Apr 2014 17:40:07 -0700 (PDT)
Received: by 10.216.29.200 with HTTP; Wed, 30 Apr 2014 17:40:07 -0700 (PDT)
In-Reply-To: <ABB2BA00-6A21-4710-A1F5-49D4FB469E8F@vpnc.org>
References: <535EB119.4000908@cisco.com> <CAHBU6itycQmqzAuxWyrFZ_v=fHdenm2csyAqtUGGu+vteh6=yQ@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E1154581E82F@WSMSG3153V.srv.dir.telstra.com> <CAHBU6iuqosV91W6CJyow_eaKdCNm_VOairJysuLS8mrWV+HM9g@mail.gmail.com> <ABB2BA00-6A21-4710-A1F5-49D4FB469E8F@vpnc.org>
Date: Wed, 30 Apr 2014 19:40:07 -0500
Message-ID: <CAK3OfOig8y5KpYZ86KrMPxrJOYC_hLBew_nmyneHCC2mXX+tag@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/json/XVVu0NmjuTV5kzTHsQqQ7LRN5ak
Cc: Tim Bray <tbray@textuality.com>, IETF JSON WG <json@ietf.org>
Subject: Re: [Json] I-JSON Tpic #2: Top-Level
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: Thu, 01 May 2014 00:40:12 -0000

On Wed, Apr 30, 2014 at 6:42 PM, Paul Hoffman <paul.hoffman@vpnc.org> wrote:
> On Apr 29, 2014, at 8:40 PM, Tim Bray <tbray@textuality.com> wrote:
>
>> I’m sorry, but the central idea of I-JSON is to explicitly rule out all the interoperability problems identified in RFC7159: How to produce maximally-interoperable JSON.
>
> This is a good point, and one that I forgot when I said "this isn't needed". There are probably some parsers out there that expect the original JSON restriction; given that, repeating the restriction here seems fine.

Conceding that for the time being, the restriction to repeat was that
JSON texts must be objects or arrays at the top-level, NOT just
objects.

Now, as to whether we should repeat that restriction, given that every
parser I know of at least has an option to permit non-object/array
types at the top-level, I find the interop argument wanting.  If I
know some application uses I-JSON, and if I know I-JSON permits any
type at the top-level (supposing it were to), why would I have any
trouble implementing that with existing parsers?

I haven't carried out an exhausting analysis of existing parsers, and
since I can't -no one can-, I might concede that point even if no one
confirms the existence of any JSON parsers that don't have an option
to permit any type at the top-level.  For now I'm just not buying the
interop argument.

Nico
--