Re: [Json] Counterproposal #2 on work items

"Joe Hildebrand (jhildebr)" <jhildebr@cisco.com> Wed, 20 February 2013 20:17 UTC

Return-Path: <jhildebr@cisco.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 177F021E8044 for <json@ietfa.amsl.com>; Wed, 20 Feb 2013 12:17:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 Fa45WPG-XlkB for <json@ietfa.amsl.com>; Wed, 20 Feb 2013 12:17:34 -0800 (PST)
Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) by ietfa.amsl.com (Postfix) with ESMTP id 6571021E8042 for <json@ietf.org>; Wed, 20 Feb 2013 12:17:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1598; q=dns/txt; s=iport; t=1361391454; x=1362601054; h=from:to:cc:subject:date:message-id:in-reply-to: content-id:content-transfer-encoding:mime-version; bh=Rf+lb4ZAPJT2G/i2WbqDPjimlSoF7xLFiGy2nwgJ2wE=; b=kdx5oCG8xqkACoI/OWWv6QujnSEcSmW8O3QNbFSDZGHacBFb06azIHrv 2tOWJz4hwigLlb2nXK2YCzPBihisjGx0nUU7fNBbsiOSvucKJouzWySNK k110dBTN+Zjhx2tVMVvQER4WjuvzZvVaDcrHf66WGbBovasz97af+Wut2 Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EAFQuJVGtJXG//2dsb2JhbABFwF+BAhZzgh8BAQEEeRIBCA4KCkURJQIEAQ0FCId4Aw8MtmwNiVqMN4IkAjEHgl9hA4gwjCGNIYUVgweBayQY
X-IronPort-AV: E=Sophos;i="4.84,703,1355097600"; d="scan'208";a="179349390"
Received: from rcdn-core2-4.cisco.com ([173.37.113.191]) by rcdn-iport-3.cisco.com with ESMTP; 20 Feb 2013 20:17:33 +0000
Received: from xhc-aln-x10.cisco.com (xhc-aln-x10.cisco.com [173.36.12.84]) by rcdn-core2-4.cisco.com (8.14.5/8.14.5) with ESMTP id r1KKHXL0013247 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 20 Feb 2013 20:17:33 GMT
Received: from xmb-rcd-x10.cisco.com ([169.254.15.195]) by xhc-aln-x10.cisco.com ([173.36.12.84]) with mapi id 14.02.0318.004; Wed, 20 Feb 2013 14:17:33 -0600
From: "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>
To: Tim Bray <tbray@textuality.com>, Francis Galiegue <fgaliegue@gmail.com>
Thread-Topic: [Json] Counterproposal #2 on work items
Thread-Index: AQHOD5RjTUz37iGayUSEf11jvGkoDJiDigUAgAAJN4D//4t2gA==
Date: Wed, 20 Feb 2013 20:17:33 +0000
Message-ID: <A723FC6ECC552A4D8C8249D9E07425A70F89B65A@xmb-rcd-x10.cisco.com>
In-Reply-To: <CAHBU6isQRpaU2R2bBLjLhHs0Br_zE0XjvRpdNEC9nPGU7yKW0A@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.3.1.130117
x-originating-ip: [10.129.24.68]
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <C25588F4A1C19A4794585AD179EEF7E2@cisco.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] Counterproposal #2 on work items
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 20:17:35 -0000

+1.  Keep in mind this BCP wouldn't be defining what the legal syntax is,
but would be helping protocol designers who use JSON make sane choices
based on what we have seen work in practice.


On 2/20/13 1:14 PM, "Tim Bray" <tbray@textuality.com> wrote:

>I¹m actually pretty sure about that one, for use in protocols.  If in
>some protocol I'm going to send you 3 data items called ³size², ³date²,
>and ³uid², if I put them in a hash, then when for a later version we need
>to add ³ttl², assuming a MUST-IGNORE
> policy, you can just do it.  If you¹ve put them in a tuple or some such,
>you have much less flexibility.  -T
>
>
>
>On Wed, Feb 20, 2013 at 11:41 AM, Francis Galiegue
><fgaliegue@gmail.com> wrote:
>
>On Wed, Feb 20, 2013 at 7:01 PM, Tim Bray <tbray@textuality.com> wrote:
>[...]
>> - always make the top-level construct an object
>
>
>Why?
>
>I have the totally opposite view -- right now only arrays and objects
>are dubbed as legal JSON texts. And I have never seen a parser raise
>an error if it were fed with anything else -- nor fail to produce
>anything else, for that matter.
>
>Restricting the top level construct to objects and arrays is "bad"
>enough, but restricting it even more? I think the _opposite_ should be
>done. JSON is flexible, restricting its flexibility would be a mistake
>imho.
>
>--
>Francis Galiegue, fgaliegue@gmail.com
>Try out your JSON Schemas:
>http://json-schema-validator.herokuapp.com
><http://json-schema-validator.herokuapp.com>
>
>
>
>
>
>



-- 
Joe Hildebrand