Re: [Json] Allow any JSON value at the top level

Paul Hoffman <paul.hoffman@vpnc.org> Tue, 11 June 2013 02:57 UTC

Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7B89321E804E for <json@ietfa.amsl.com>; Mon, 10 Jun 2013 19:57:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.443
X-Spam-Level:
X-Spam-Status: No, score=-102.443 tagged_above=-999 required=5 tests=[AWL=0.156, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PD4dDkoEbTvu for <json@ietfa.amsl.com>; Mon, 10 Jun 2013 19:57:43 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2605:8e00:100:41::81]) by ietfa.amsl.com (Postfix) with ESMTP id E26B611E80BA for <json@ietf.org>; Mon, 10 Jun 2013 19:57:42 -0700 (PDT)
Received: from [10.20.30.90] (50-0-66-165.dsl.dynamic.sonic.net [50.0.66.165]) (authenticated bits=0) by hoffman.proper.com (8.14.5/8.14.5) with ESMTP id r5B2venx062787 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 10 Jun 2013 19:57:41 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Content-Type: text/plain; charset="iso-8859-1"
Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <CAChr6SyYUJEHBP2qq=FpyMAQ=+3sAV8mcvBwoSYBfUdh9_Xa3Q@mail.gmail.com>
Date: Mon, 10 Jun 2013 19:57:40 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <B4ABD0ED-1F4E-4B2E-A0B1-B93A1C28B21A@vpnc.org>
References: <A723FC6ECC552A4D8C8249D9E07425A70FC33B5B@xmb-rcd-x10.cisco.com> <51b23e6d.6196420a.0b15.4245SMTPIN_ADDED_BROKEN@mx.google.com> <CAChr6SwrveU=fesF8VidDYWzeYMu2c1+=38+__BqHArxTiW5mg@mail.gmail.com> <51b4dbbe.64da440a.1fc2.6dd2SMTPIN_ADDED_BROKEN@mx.google.com> <CAChr6Sx_obmG+=sY100ySBLmevN0VJ_0Z9TjYGxcXKOx+UtnJA@mail.gmail.com> <51b4ec44.ea05420a.7c73.ffffa487SMTPIN_ADDED_BROKEN@mx.google.com> <CAChr6SxiZ2Yz6SiozQZpuYoGKSzWnUux6PukyWDkcvKsVyyRbQ@mail.gmail.com> <51b507b1.c686e00a.3a7e.ffffa0adSMTPIN_ADDED_BROKEN@mx.google.com> <CAO1wJ5R2H27qh-DWG5B8CzutkTFWxn-h+Qi1jiet23axxmvLyA@mail.gmail.com> <20130610201746.GC1057@mercury.ccil.org> <CAO1wJ5Q9mhspheU3h4NRx9x5LOz9yOgJBXhwPWBOVw-w71ncTQ@mail.gmail.com> <3CE20E15-8F9E-4727-BBE7-FBB06F7CAC24@jorgechamorro.com> <CAGrxA24T8m9oHmuVE8n+YG6ATr3sTTByet7Te8VyAmypD11p6w@mail.gmail.com> <B14769F1-5C71-4F1D-8E20-513271876620@vpnc.org> <CAChr6SzXUNTA+bMtFAwWh+Z2APoiSuAt7DQzx+RK57+vznN1-w@mail.gmail.com> <C2E107B6-7DE7-4392-907! A-66704E853523@vpnc.org> <CAChr6SyYUJEHBP2qq=FpyMAQ=+3sAV8mcvBwoSYBfUdh9_Xa3Q@mail.gmail.com>
To: R S <sayrer@gmail.com>
X-Mailer: Apple Mail (2.1508)
Cc: "<json@ietf.org>" <json@ietf.org>
Subject: Re: [Json] Allow any JSON value at the top level
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
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 Jun 2013 02:57:43 -0000

On Jun 10, 2013, at 7:38 PM, R S <sayrer@gmail.com> wrote:

> On Mon, Jun 10, 2013 at 7:04 PM, Paul Hoffman <paul.hoffman@vpnc.org> wrote:
> 
> Good catch. When I said "as-is", I meant "don't change the current text". We need to add a point to the differences section for 4627-ECMAScript, and would need to duplicate that in the section for the current-doc-ECMAScript section.
> 
> Wouldn't that be a section that amounts to "here's what you need to do to interoperate with browsers and most other popular implementations"?

Oh gopod no. I certainly hope the WG find that defining "browser" and "most" and "popular" is out of scope.

> Many endpoints only accept specific root elements. For example, json-patch only accepts arrays. In other words, no one will notice if your JSON parser only accepts objects and arrays. 
> 
> What is the benefit of preserving RFC 4627 requirements? I don't understand the rationale accompanying your opinion. The charter mandates that the WG document top-level primitive parsing, no matter what.

Fully agree on the last part. But "document" does not mean "change the requirements". We can say "the requirement is X" and "X differs from 4627 and/or ECMAScript", at least in my reading of the charter.

--Paul Hoffman