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

R S <sayrer@gmail.com> Sun, 09 June 2013 20:24 UTC

Return-Path: <sayrer@gmail.com>
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 BA11821F8C20 for <json@ietfa.amsl.com>; Sun, 9 Jun 2013 13:24:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.404
X-Spam-Level:
X-Spam-Status: No, score=-2.404 tagged_above=-999 required=5 tests=[AWL=0.195, BAYES_00=-2.599, HTML_MESSAGE=0.001, NO_RELAYS=-0.001]
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 yxXGI380DvAM for <json@ietfa.amsl.com>; Sun, 9 Jun 2013 13:24:32 -0700 (PDT)
Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [IPv6:2a00:1450:400c:c03::231]) by ietfa.amsl.com (Postfix) with ESMTP id 7BB3521F8BF7 for <json@ietf.org>; Sun, 9 Jun 2013 13:24:31 -0700 (PDT)
Received: by mail-we0-f177.google.com with SMTP id m19so4314663wev.36 for <json@ietf.org>; Sun, 09 Jun 2013 13:24:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=C1vcy0FMWca/7caslC791kmE48hakJX68jtLZ5eYOo8=; b=eR99tpNX3MtXGNePv/CjWCkYdbU6JZY6UgsZIDgWsHKNclulY3IxeV/s0ivk8R8mHj BarKpW4qCJwaR0Jw6TcEQWphEN0peuu5X3vcA4C91Xho0lmQGpKLRzhTEM3R4JkNZMsq bTH/v4FcsacwSV4DoWfoWwvDLGHwg5wYwhxbdjUT+E/NNf5MxNQ5bw+3PkH2q1J7P65F 95q057t4UTSZIir04k/oKCxX2nqGfD+uGWca+0GVRDWzwBFW68A+Kpuuza2YE4RWLF27 yI54LJMvRYbVjffwdrN4P1Swch8b9lAsvJ/aTYIaeFvJRhPqbWkMDEGSchgPCsIMqNLH r4tQ==
MIME-Version: 1.0
X-Received: by 10.180.206.77 with SMTP id lm13mr3168306wic.18.1370809470475; Sun, 09 Jun 2013 13:24:30 -0700 (PDT)
Received: by 10.194.83.35 with HTTP; Sun, 9 Jun 2013 13:24:30 -0700 (PDT)
In-Reply-To: <51b4dbbe.64da440a.1fc2.6dd2SMTPIN_ADDED_BROKEN@mx.google.com>
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>
Date: Sun, 09 Jun 2013 13:24:30 -0700
Message-ID: <CAChr6Sx_obmG+=sY100ySBLmevN0VJ_0Z9TjYGxcXKOx+UtnJA@mail.gmail.com>
From: R S <sayrer@gmail.com>
To: Markus Lanthaler <markus.lanthaler@gmx.net>
Content-Type: multipart/alternative; boundary="001a11c380ae8ae57904debe73ca"
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: Sun, 09 Jun 2013 20:24:32 -0000

On Sun, Jun 9, 2013 at 12:46 PM, Markus Lanthaler
<markus.lanthaler@gmx.net>wrote:

>
>
> > 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.
>

That would not be backward compatible.



> 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.
>


"In telecommunications and computing, a product or technology is backward
or downward compatible if it can work with input generated by an older
product or technology." <
https://en.wikipedia.org/wiki/Backward_compatibility>

Arrays and Objects at the root will still work, obviously, so this proposal
can be said to be backward compatible.



> As someone else showed in a different
> thread, this would e.g. break Rail's default JSON parser.
>

How would it break that parser? My employer happens to operate a very large
Rails site with heavy JSON traffic. We use a popular open-source JSON gem.
It supports the primitive root values proposed here.

- Rob