Re: [Json] I-JSON Tpic #2: Top-Level
Tim Bray <tbray@textuality.com> Mon, 28 April 2014 20:20 UTC
Return-Path: <tbray@textuality.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 ACD171A7026 for <json@ietfa.amsl.com>; Mon, 28 Apr 2014 13:20:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 a_Aks7pALdHM for <json@ietfa.amsl.com>; Mon, 28 Apr 2014 13:20:54 -0700 (PDT)
Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by ietfa.amsl.com (Postfix) with ESMTP id 451DC1A700B for <json@ietf.org>; Mon, 28 Apr 2014 13:20:52 -0700 (PDT)
Received: by mail-vc0-f176.google.com with SMTP id lc6so8618173vcb.7 for <json@ietf.org>; Mon, 28 Apr 2014 13:20:51 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=CHnI3GLq+whpWyvUumd/fqCs784IdGhRA8Gvkb6P9Lg=; b=SBkDzFu5PIjGtFzSumH57sumsxoc5X+RzEUYrkiIXEH1UEcKtum+RanZCvI0WRRp6e zqRFEzcLVnbNGrhctb//BPyiDfYHDTSszNP3VjiMfeEtLCawJxekjJICM8GvlXFgZSdy eoMw5F48bdIOEkoMuoAmMCf/v9gEa9manpf2MBVGCqWzZWFRsxwEdNa4pkRs+PFNEavC ALxe54NubEtj4tmv7N0js/7+FRYJifgQZTbYlrNIkEqyb8YmP+E9zLRM7F+RSCDRGYE+ DtpFtaUxsbjW2zoTIQWA55fJILIhivhR/HtSo8n/XchsEf0IFmGy1JEnP2g3hGb7BrJY u5TQ==
X-Gm-Message-State: ALoCoQkJzXkGyKB7E8aTgSTvkXKAhxDqQ20O7SOYYncshjwh8Iwg7SfXUphHcCfiT4YbAbOXCeCz
X-Received: by 10.220.12.66 with SMTP id w2mr25080395vcw.15.1398716451068; Mon, 28 Apr 2014 13:20:51 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.98.73 with HTTP; Mon, 28 Apr 2014 13:20:31 -0700 (PDT)
X-Originating-IP: [96.49.81.176]
In-Reply-To: <535EB119.4000908@cisco.com>
References: <535EB119.4000908@cisco.com>
From: Tim Bray <tbray@textuality.com>
Date: Mon, 28 Apr 2014 13:20:31 -0700
Message-ID: <CAHBU6itycQmqzAuxWyrFZ_v=fHdenm2csyAqtUGGu+vteh6=yQ@mail.gmail.com>
To: Matt Miller <mamille2@cisco.com>
Content-Type: multipart/alternative; boundary="001a11c315003532f704f8200da8"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/t7njw-i_Puhez5El_inuMsy7bMo
Cc: 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: Mon, 28 Apr 2014 20:20:57 -0000
Protocols with messages which are objects are better than other protocols, because they are architecturally friendly to MustIgnore policies. Allowing top-level JSON to be a primitive - true, null, 42 - is batshit crazy for anything the IETF might contemplate, and one of I-JSON’s main virtues is ruling that out. I don’t think top-level arrays are actively harmful at the same level, but the MustIgnore is a pretty big value-add, forcing people to sort-of future-proof themselves even when they haven’t realized why that’s a good idea. So I’d leave it object-only. On Mon, Apr 28, 2014 at 12:50 PM, Matt Miller <mamille2@cisco.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > "draft-i-json-01 says the top level is an object (but doesn’t say > MUST, eek). I have heard arguments for allowing arrays too." > > If you are in favor -- or not -- of restricting the top-level I-JSON > text to only be object (or array / object), please respond to this > thread with your reasoning. > > > - -- > - - m&m > > Matt Miller < mamille2@cisco.com > > Cisco Systems, Inc. > > * "How to Argue about I-JSON" < > http://www.ietf.org/mail-archive/web/json/current/msg02775.html > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.22 (Darwin) > Comment: GPGTools - https://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQEcBAEBCgAGBQJTXrEZAAoJEDWi+S0W7cO1bjAH/RxLeWEABXMoJEJrw92lYfkP > bLgoS7TRoSxVdUY9K8SVMEJKHMrY2QrK/aNqhwlpWvIirM70xFUT7Sb40M+Msmm/ > qFZTFfVRdRsnqsd21dciZ6hA4eSDfkP81cIoMn4MiCx8EExZCj7yroWaTor8jNct > 7BgVCWkom2ENVNOb6JEPFa7LD6hpm/9vx1FHctbDgreJuhsYxY9Uy17h/BjxxwPc > NkNFbo+OX4Zw6f053cKWbITps/R+IAM57atzJ9PgGpMpN+POQJF/BihnB1qRdUsv > y8QqQ1s8r47DauWQ0eX4BxgPXeGV+jBqXrtVAzyNq2B7KFkDukf9UVahUaJjwJU= > =nAfX > -----END PGP SIGNATURE----- > > _______________________________________________ > json mailing list > json@ietf.org > https://www.ietf.org/mailman/listinfo/json >
- [Json] I-JSON Tpic #2: Top-Level Matt Miller
- Re: [Json] I-JSON Tpic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Tpic #2: Top-Level Tim Bray
- Re: [Json] I-JSON Tpic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Tpic #2: Top-Level Jacob Davies
- Re: [Json] I-JSON Tpic #2: Top-Level Tim Bray
- Re: [Json] I-JSON Tpic #2: Top-Level Matthew Morley
- Re: [Json] I-JSON Tpic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Tpic #2: Top-Level Mark Nottingham
- Re: [Json] I-JSON Tpic #2: Top-Level Tim Bray
- Re: [Json] I-JSON Tpic #2: Top-Level John Cowan
- Re: [Json] I-JSON Tpic #2: Top-Level Paul Hoffman
- Re: [Json] I-JSON Tpic #2: Top-Level Manger, James
- Re: [Json] I-JSON Tpic #2: Top-Level Manger, James
- Re: [Json] I-JSON Tpic #2: Top-Level Tim Bray
- Re: [Json] I-JSON Tpic #2: Top-Level Manger, James
- Re: [Json] I-JSON Tpic #2: Top-Level Stefan Drees
- Re: [Json] I-JSON Tpic #2: Top-Level Jacob Davies
- Re: [Json] I-JSON Tpic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Tpic #2: Top-Level Paul Hoffman
- Re: [Json] I-JSON Tpic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Tpic #2: Top-Level Matt Miller
- Re: [Json] I-JSON Tpic #2: Top-Level Tim Bray
- Re: [Json] I-JSON Tpic #2: Top-Level Paul Hoffman
- Re: [Json] I-JSON Tpic #2: Top-Level Stefan Drees
- Re: [Json] I-JSON Tpic #2: Top-Level Jacob Davies
- Re: [Json] I-JSON Tpic #2: Top-Level Carsten Bormann
- Re: [Json] I-JSON Tpic #2: Top-Level Martin J. Dürst
- Re: [Json] I-JSON Tpic #2: Top-Level Carsten Bormann
- Re: [Json] I-JSON Tpic #2: Top-Level Joe Hildebrand (jhildebr)
- Re: [Json] I-JSON Tpic #2: Top-Level Paul Hoffman
- Re: [Json] I-JSON Tpic #2: Top-Level Jacob Davies
- Re: [Json] I-JSON Tpic #2: Top-Level Joe Hildebrand (jhildebr)
- Re: [Json] I-JSON Tpic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Tpic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Tpic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Tpic #2: Top-Level Paul Hoffman
- Re: [Json] I-JSON Tpic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Tpic #2: Top-Level Paul Hoffman
- Re: [Json] I-JSON Tpic #2: Top-Level Joe Hildebrand (jhildebr)
- Re: [Json] I-JSON Tpic #2: Top-Level Carsten Bormann
- Re: [Json] I-JSON Tpic #2: Top-Level Joe Hildebrand (jhildebr)
- Re: [Json] I-JSON Tpic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Tpic #2: Top-Level Joe Hildebrand (jhildebr)
- Re: [Json] I-JSON Tpic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Tpic #2: Top-Level Jacob Davies
- Re: [Json] I-JSON Tpic #2: Top-Level Joe Hildebrand (jhildebr)
- Re: [Json] I-JSON Tpic #2: Top-Level Martin J. Dürst
- Re: [Json] I-JSON Topic #2: Top-Level Matt Miller
- Re: [Json] I-JSON Topic #2: Top-Level Matthew Morley
- Re: [Json] I-JSON Topic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Topic #2: Top-Level Nico Williams
- Re: [Json] I-JSON Topic #2: Top-Level Phillip Hallam-Baker