Re: [Json] Proposed document set from this WG

Francis Galiegue <fgaliegue@gmail.com> Wed, 20 February 2013 17:00 UTC

Return-Path: <fgaliegue@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 D194E21F8991 for <json@ietfa.amsl.com>; Wed, 20 Feb 2013 09:00:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.528
X-Spam-Level:
X-Spam-Status: No, score=-3.528 tagged_above=-999 required=5 tests=[AWL=0.071, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SRiS9WxBsjAv for <json@ietfa.amsl.com>; Wed, 20 Feb 2013 09:00:31 -0800 (PST)
Received: from mail-ee0-f43.google.com (mail-ee0-f43.google.com [74.125.83.43]) by ietfa.amsl.com (Postfix) with ESMTP id DDA2221F88CC for <json@ietf.org>; Wed, 20 Feb 2013 09:00:29 -0800 (PST)
Received: by mail-ee0-f43.google.com with SMTP id c50so4244613eek.2 for <json@ietf.org>; Wed, 20 Feb 2013 09:00:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=Gt4IF3ZtvRf0QTwiJHWCzhEWZDByHTYIebvPW82B4Gs=; b=emXMOsl6LrSGlqapmcFKwRDf+sd6KYRssTG7EA9idLJGqle82F1YKuSm/pMYwXUVjv HrW+Ibl+YMqkfRmbdXlRzagGmIQ4MQwlDwIzZ7PG2HhTN4bW3qfIrBp6foRWK5yTgnS6 WCgV2JTdBtC55YOjb3QTl7EFNwN0vF42jeKxCFDRpp9Oi//2mY5FOSyZwYHNj5jFckPt M7WocNjRa3F3tkqAXP/RTNH1/5I3YPWHD7HqSlsS3CnV3O7vHcc5qX4Ce4HwSvt+LSMg QRCmt+yMdR5KNF7mqMdBS2c11XSMGWcZh8ezj4v31+Yim95FzSjhDf1EBYy4kRA2icr4 1zlw==
MIME-Version: 1.0
X-Received: by 10.14.183.67 with SMTP id p43mr70600726eem.10.1361379629016; Wed, 20 Feb 2013 09:00:29 -0800 (PST)
Received: by 10.14.1.7 with HTTP; Wed, 20 Feb 2013 09:00:28 -0800 (PST)
In-Reply-To: <CAHBU6is3296Hrg57WHXE5641Fy6Dgs24XmjbUd4-mAMy=tC7WA@mail.gmail.com>
References: <734F6B55-2AA7-44A6-A636-7221C8518479@vpnc.org> <A723FC6ECC552A4D8C8249D9E07425A70F89AF14@xmb-rcd-x10.cisco.com> <CAHBU6is3296Hrg57WHXE5641Fy6Dgs24XmjbUd4-mAMy=tC7WA@mail.gmail.com>
Date: Wed, 20 Feb 2013 18:00:28 +0100
Message-ID: <CALcybBDO6ZwwcEhQ=y5iHCC=hsguF_MaSGVMA+RR1W_EZtD_UQ@mail.gmail.com>
From: Francis Galiegue <fgaliegue@gmail.com>
To: Tim Bray <tbray@textuality.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cc: R S <sayrer@gmail.com>, Paul Hoffman <paul.hoffman@vpnc.org>, "Joe Hildebrand \(jhildebr\)" <jhildebr@cisco.com>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] Proposed document set from this WG
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Discussion related to JavaScript Object Notation \(JSON\)." <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: Wed, 20 Feb 2013 17:00:33 -0000

On Wed, Feb 20, 2013 at 5:57 PM, Tim Bray <tbray@textuality.com> wrote:
[...]
>>
>> 15.12.1.2: JSONText can be any value, not just object or array.  I think
>> this would be a positive change for 4627bis, perhaps with a note that
>> older processors are likely to reject any top level that is not an object
>> or array.
>
>
> Eeek, that scares me.  That is a huge liberalization; there’s a lot of code
> out there that assumes that when you parse JSON you get a hash.
>

Well, RFC 4627 also "allows" arrays as JSON texts...

I agree about any JSON value being possible. In practice, there are a
lot of parsers which don't obey RFC 4627 in that they do parse any
JSON value whereas they shouldn't...

--
Francis Galiegue, fgaliegue@gmail.com
Try out your JSON Schemas: http://json-schema-validator.herokuapp.com