Re: [Json] What is a JSON-text? [REVISITED]

R S <sayrer@gmail.com> Thu, 03 October 2013 21:10 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 1A54421E8085 for <json@ietfa.amsl.com>; Thu, 3 Oct 2013 14:10:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[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 taQ243v0ay58 for <json@ietfa.amsl.com>; Thu, 3 Oct 2013 14:09:59 -0700 (PDT)
Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) by ietfa.amsl.com (Postfix) with ESMTP id 60DD821E8088 for <json@ietf.org>; Thu, 3 Oct 2013 13:57:30 -0700 (PDT)
Received: by mail-wi0-f182.google.com with SMTP id ez12so666771wid.3 for <json@ietf.org>; Thu, 03 Oct 2013 13:57:29 -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=1PPDNsgmeV9LTDvTutSMaHLdlI0UWBFEDRhs8NnBV0I=; b=NcGJiTjMV2CRPbQTnYbjkiaxdZA3MXht7Amss42xC/GJlwL32cJj3OmeCvAYmJ5kF6 6vg9IOdq9UO0DQpQUSYjS8yehzx8I/GBU8TWdd063mrSOU61GmpPp4yTdJt+Bp22pOEC 7vQS6vgmRkS/i/MpZEwY9X8O7rKD1A7SgKNXA5NxQ6fQEDnZPSX1en8ip+qr9ubGL3Hs 1K3aSqEr8QXUGbziEYWG1HuDSEMOO2wfrsz+/UHsAEHGf9s7i3ony58ycLpZDzM+Xtla WCaQn4nXLtK+FmXQQExnuYaHDV4fnhqT8lPn20W0LoUqr2vD+ZsznfcPieIHn3spWSKO uwFg==
MIME-Version: 1.0
X-Received: by 10.194.158.67 with SMTP id ws3mr9116377wjb.5.1380833849536; Thu, 03 Oct 2013 13:57:29 -0700 (PDT)
Received: by 10.194.123.41 with HTTP; Thu, 3 Oct 2013 13:57:29 -0700 (PDT)
In-Reply-To: <CB92A76C-9537-4C89-911A-F94949F7EE73@vpnc.org>
References: <BF7E36B9C495A6468E8EC573603ED9411EF2B583@xmb-aln-x11.cisco.com> <CB92A76C-9537-4C89-911A-F94949F7EE73@vpnc.org>
Date: Thu, 03 Oct 2013 13:57:29 -0700
Message-ID: <CAChr6SxAeXri1wQ6FARJE_emy35B_PYC8LRbWVB3RWLgu-4UjQ@mail.gmail.com>
From: R S <sayrer@gmail.com>
To: Paul Hoffman <paul.hoffman@vpnc.org>
Content-Type: multipart/alternative; boundary="089e0122eca41879e804e7dc6f90"
Cc: JSON WG <json@ietf.org>
Subject: Re: [Json] What is a JSON-text? [REVISITED]
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: Thu, 03 Oct 2013 21:10:07 -0000

On Thu, Oct 3, 2013 at 11:59 AM, Paul Hoffman <paul.hoffman@vpnc.org> wrote:

> <no hat>
>
> On Oct 3, 2013, at 9:33 AM, Matt Miller (mamille2) <mamille2@cisco.com>
> wrote:
>
> > There was previously much discussion on this topic[2].  Some have
> restated their support.  What do others think about changing JSON-text to
> allow any JSON value versus just objects or arrays?
>
> I'm +.5 on the proposal. It would make 4627bis more aligned with
> ECMAScript, and there is no rationale given for "a JSON-text can be less
> that what you think it can be". This change will make some parsers that are
> 4627-but-not-ECMAScript compliant become not compliant. To me, the latter
> is not as important as the former.


In the abstract, I think matching ECMAScript is a good idea. If I were
choosing a parser, I would definitely pick one that supported any JSON
value at the root.

As a sender, I wouldn't want the RFC to lead me to believe that every JSON
parser could handle the ECMAScript root-level primitive JSON values at this
time. Having a note that points out this variation exists is a good idea.

Some other group of people can come back in 10 years and write down what
happened (maybe the note will tempt everyone to support primitive root
values, maybe not).

- Rob