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

Tatu Saloranta <tsaloranta@gmail.com> Fri, 07 June 2013 17:56 UTC

Return-Path: <tsaloranta@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 3318021F9989 for <json@ietfa.amsl.com>; Fri, 7 Jun 2013 10:56:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.362
X-Spam-Level:
X-Spam-Status: No, score=-2.362 tagged_above=-999 required=5 tests=[AWL=0.237, 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 P5J4VlBHKeS0 for <json@ietfa.amsl.com>; Fri, 7 Jun 2013 10:56:21 -0700 (PDT)
Received: from mail-wg0-x22d.google.com (mail-wg0-x22d.google.com [IPv6:2a00:1450:400c:c00::22d]) by ietfa.amsl.com (Postfix) with ESMTP id 7B06121F9984 for <json@ietf.org>; Fri, 7 Jun 2013 10:56:19 -0700 (PDT)
Received: by mail-wg0-f45.google.com with SMTP id n12so3435490wgh.24 for <json@ietf.org>; Fri, 07 Jun 2013 10:56:18 -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=B8IF1feOT/7BVMPKPP4zq/aZqjyQrmdlbEHUr++YAp4=; b=UGx7StNq1vjFG681IV4f4dNDyKUOvmtQKcK+akTVNW3oAN2M7WcwVPJ36P99OfhE3e aPCtF9IItcPaWdWEo0g6YfuYHRCpot0IdHB9SEY1U9XUw7hb+BHPbUGSVlkxbHBc6QA/ 1Ie4kznZTJ9+m/MdR2hL30KE3hExhE5IPfSOEJSf+k04ZGK8ow6XspQ1D7DxX8Ivm/3e 3TDFGGr88F/nYxNUGMejdWpmlb5q3GRxqKnoqmpK6LGMjnQuMRNa0mh2HqhNqGhwljd6 2JZivwXNVCecrC0p02YEVZDYbh+BMC5IPNt+lbprxbA0mcQytGrO6bOZQmTKrDioKUJr IfWA==
MIME-Version: 1.0
X-Received: by 10.180.206.70 with SMTP id lm6mr1386870wic.50.1370627778549; Fri, 07 Jun 2013 10:56:18 -0700 (PDT)
Received: by 10.227.97.6 with HTTP; Fri, 7 Jun 2013 10:56:18 -0700 (PDT)
In-Reply-To: <A00C1298-57BF-49DE-8486-D6EAB828F833@yahoo.com>
References: <255B9BB34FB7D647A506DC292726F6E1151B21F9A9@WSMSG3153V.srv.dir.telstra.com> <A2D3D8F3-1EB3-4CD6-A331-4EDCDB7F9798@tzi.org> <A00C1298-57BF-49DE-8486-D6EAB828F833@yahoo.com>
Date: Fri, 07 Jun 2013 10:56:18 -0700
Message-ID: <CAGrxA27Yi3g7=XEuFnUbCTN9nq8F2N=RjVwNGtUyeLnzoAxfGw@mail.gmail.com>
From: Tatu Saloranta <tsaloranta@gmail.com>
To: Vinny A <jsontest@yahoo.com>
Content-Type: multipart/alternative; boundary="001a11c265bedc1f5d04de9425df"
Cc: Carsten Bormann <cabo@tzi.org>, "Manger, James H" <James.H.Manger@team.telstra.com>, "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: Fri, 07 Jun 2013 17:56:22 -0000

On Fri, Jun 7, 2013 at 6:38 AM, Vinny A <jsontest@yahoo.com> wrote:

>
> On Jun 7, 2013, at 3:59 AM, Carsten Bormann <cabo@tzi.org> wrote:
> > Apart from auto-detection, one other result is that JSON texts no longer
> stream.  RFC 4627 texts are self-delimiting, the new ones wouldn't always
> be.  Of course, if you want to stream sequences of JSON texts, you could
> always limit those back to arrays or maps
>
> I'm +0 on this topic, partly for Carsten's reason, but also because this
> looks to be a breaking change.
>
> Do commonly used parsers support top level JSON values
>


Yes, at least on Java platform.

Follow-up question would be whether use cases exist for sending root-level
non-structured values: that I do not know. I do know that some JSON
validators struggle with this question (should it be allowed but flagged or
marked as error); and that suggests that usage exists.

-+ Tatu +-