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

Nico Williams <nico@cryptonector.com> Wed, 30 April 2014 19:03 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 D6A361A887E for <json@ietfa.amsl.com>; Wed, 30 Apr 2014 12:03: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 rVG64C26cblW for <json@ietfa.amsl.com>; Wed, 30 Apr 2014 12:03:10 -0700 (PDT)
Received: from homiemail-a36.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 843C71A8867 for <json@ietf.org>; Wed, 30 Apr 2014 12:03:10 -0700 (PDT)
Received: from homiemail-a36.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a36.g.dreamhost.com (Postfix) with ESMTP id 1FA8A778071 for <json@ietf.org>; Wed, 30 Apr 2014 12:03: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=m73c4HazvHp90V117bH/7GvwJnw=; b=GJ4MCrH/pyr e+rkuSp96Nr32GTHvgiOJfGI7VciOTm7KiHxee3jB12N8HxrkvPwRammcFOPG5P+ usbKgTQGXLwwDtY7EHiTlH4I7cHne7tD+FdwLbY8gn6MkudYGnuOpqsSnf6B1cKR hmJoKhfgqPScBCJlIK9zGSETgB3Kksig=
Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a36.g.dreamhost.com (Postfix) with ESMTPSA id C7330778057 for <json@ietf.org>; Wed, 30 Apr 2014 12:03:08 -0700 (PDT)
Received: by mail-we0-f173.google.com with SMTP id w61so2104965wes.4 for <json@ietf.org>; Wed, 30 Apr 2014 12:03:07 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.194.62.176 with SMTP id z16mr3385568wjr.67.1398884587320; Wed, 30 Apr 2014 12:03:07 -0700 (PDT)
Received: by 10.216.29.200 with HTTP; Wed, 30 Apr 2014 12:03:07 -0700 (PDT)
In-Reply-To: <CAHBU6iuqosV91W6CJyow_eaKdCNm_VOairJysuLS8mrWV+HM9g@mail.gmail.com>
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>
Date: Wed, 30 Apr 2014 14:03:07 -0500
Message-ID: <CAK3OfOjpRaa=BfK=8hVd4nfmWwg4+-qUx-kv9cQkZYpjKCPreQ@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Tim Bray <tbray@textuality.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/json/_EjEBoqGxq-khlHWCF6__TbP3QU
Cc: "Manger, James" <James.H.Manger@team.telstra.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: Wed, 30 Apr 2014 19:03:12 -0000

On Tue, Apr 29, 2014 at 10: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.  7159 specifically says that for
> interoperability a JSON Text should be an object or array, and the idea of
> making I-JSON less constraining totally defeats its purpose.  This is just
> not a reasonable direction to be going.

Applications that use JSON -or any other encoding system for
structured data- need to agree on schema to begin with.

Yes, it's true that a human can eyeball a JSON text, or a dump of
ASN.1 BER/DER/CER encoded data, or..., and get a pretty good idea of
the meaning of various artifacts.  But by and large it's applications
that consume these things, not humans.  And applications, not being
humans, need to agree on schemata.

Usually schema signalling is done out of band, and you have dropped
your earlier proposal to do I-JSON signalling in-band.  Why do we need
to do anything else at all regarding this?  (That's not rhetorical.  I
want to understand just why we should do what you propose.)

Extensibility of schemata is a separable issue; we should separate it.
 I agree that uses of JSON should generally have a default implied
extensibility rule, a-la modern ASN.1 -- i.e., ignore unknown names in
objects -- all objects most likely.  But that has nothing to do with
the top-level being an object, which is why it's separable.

Nico
--