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

"Markus Lanthaler" <markus.lanthaler@gmx.net> Sun, 09 June 2013 19:47 UTC

Return-Path: <markus.lanthaler@gmx.net>
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 C238521F944C for <json@ietfa.amsl.com>; Sun, 9 Jun 2013 12:47:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.15
X-Spam-Level:
X-Spam-Status: No, score=-1.15 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, MSGID_MULTIPLE_AT=1.449]
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 UV+VuiKS2NDf for <json@ietfa.amsl.com>; Sun, 9 Jun 2013 12:46:54 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by ietfa.amsl.com (Postfix) with ESMTP id 18A7021F92B7 for <json@ietf.org>; Sun, 9 Jun 2013 12:46:53 -0700 (PDT)
Received: from mailout-de.gmx.net ([10.1.76.35]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LlsgY-1UCQl01Bku-00ZLwa for <json@ietf.org>; Sun, 09 Jun 2013 21:46:50 +0200
Received: (qmail invoked by alias); 09 Jun 2013 19:46:49 -0000
Received: from 84-115-182-43.dynamic.surfer.at (EHLO Vostro3500) [84.115.182.43] by mail.gmx.net (mp035) with SMTP; 09 Jun 2013 21:46:49 +0200
X-Authenticated: #419883
X-Provags-ID: V01U2FsdGVkX1+4flgqXJK4/uzoTAiLA9M+Wf6hPpphc54px1+2dj arGFXeYdq167PL
From: Markus Lanthaler <markus.lanthaler@gmx.net>
To: 'R S' <sayrer@gmail.com>
References: <A723FC6ECC552A4D8C8249D9E07425A70FC33B5B@xmb-rcd-x10.cisco.com> <51b23e6d.6196420a.0b15.4245SMTPIN_ADDED_BROKEN@mx.google.com> <CAChr6SwrveU=fesF8VidDYWzeYMu2c1+=38+__BqHArxTiW5mg@mail.gmail.com>
In-Reply-To: <CAChr6SwrveU=fesF8VidDYWzeYMu2c1+=38+__BqHArxTiW5mg@mail.gmail.com>
Date: Sun, 09 Jun 2013 21:46:40 +0200
Message-ID: <00c101ce654a$1043ff00$30cbfd00$@lanthaler>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 12.0
Thread-index: Ac5jx0Ip8LONTUOvSG2GGjTG52/FtABgfzBw
Content-Language: de
X-Y-GMX-Trusted: 0
Cc: 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: Sun, 09 Jun 2013 19:47:08 -0000

On Friday, June 07, 2013 11:38 PM, R S wrote:
> I believe this proposal is in scope--it's one of the inconsistencies
> with ECMAScript this group has been tasked with resolving, and it was
> mentioned during the chartering process.

I disagree. Allowing something else than an object or an array at the
top-level is clearly out of scope IMO.


> Are there interoperability problems we should be aware of? In my
> experience, this change doesn't matter to applications that can only
> handle objects or arrays--they simply encounter an error immediately
> after parsing rather than during it.

Well, changing the {}s to <>s would also result in an error but that doesn't
mean that it won't cause problems. The most important thing for this WG is
to preserve backwards-compatibility. Turning JSON parsers that are currently
completely conformant obsolete and arguing that they would error clearly
breaks backwards compatibility. As someone else showed in a different
thread, this would e.g. break Rail's default JSON parser.


--
Markus Lanthaler
@markuslanthaler