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

John Cowan <cowan@mercury.ccil.org> Tue, 29 April 2014 17:13 UTC

Return-Path: <cowan@ccil.org>
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 57A0D1A092A for <json@ietfa.amsl.com>; Tue, 29 Apr 2014 10:13:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.765
X-Spam-Level:
X-Spam-Status: No, score=-1.765 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FAKE_REPLY_C=1.486, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.651] 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 0tBAf3od0Odr for <json@ietfa.amsl.com>; Tue, 29 Apr 2014 10:13:17 -0700 (PDT)
Received: from earth.ccil.org (earth.ccil.org [192.190.237.11]) by ietfa.amsl.com (Postfix) with ESMTP id A11D01A0776 for <json@ietf.org>; Tue, 29 Apr 2014 10:13:17 -0700 (PDT)
Received: from cowan by earth.ccil.org with local (Exim 4.72) (envelope-from <cowan@ccil.org>) id 1WfBal-0001fx-TB for json@ietf.org; Tue, 29 Apr 2014 13:13:16 -0400
Date: Tue, 29 Apr 2014 13:13:15 -0400
From: John Cowan <cowan@mercury.ccil.org>
To: json@ietf.org
Message-ID: <20140429171315.GX11962@mercury.ccil.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.5.20 (2009-06-14)
Sender: John Cowan <cowan@ccil.org>
Archived-At: http://mailarchive.ietf.org/arch/msg/json/p6KWTW8w-X9vYXjP4g0ZLh_Ke2c
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: Tue, 29 Apr 2014 17:13:19 -0000

> 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​; anyone who thinks
> that is a good idea should speak up. (I won’t.)

As I understand it, the reason for this restriction was to support the
in-band I-JSON signature.  Since this is now dropped, there is no further
reason not to allow the sending of arbitrary JSON values.

-- 
John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
"But I am the real Strider, fortunately," he said, looking down at them
with his face softened by a sudden smile.  "I am Aragorn son of Arathorn,
and if by life or death I can save you, I will."