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

"Joe Hildebrand (jhildebr)" <jhildebr@cisco.com> Fri, 07 June 2013 17:08 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 E54F521F947C for <json@ietfa.amsl.com>; Fri, 7 Jun 2013 10:08:47 -0700 (PDT)
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 ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hJZ0qVB6+poj for <json@ietfa.amsl.com>; Fri, 7 Jun 2013 10:08:42 -0700 (PDT)
Received: from rcdn-iport-8.cisco.com (rcdn-iport-8.cisco.com [173.37.86.79]) by ietfa.amsl.com (Postfix) with ESMTP id 05A2221F94DC for <json@ietf.org>; Fri, 7 Jun 2013 10:08:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=632; q=dns/txt; s=iport; t=1370624922; x=1371834522; h=from:to:subject:date:message-id:in-reply-to:content-id: content-transfer-encoding:mime-version; bh=76FivhxpsqOF7SqAmSiroLna5elhSED2m3VbZspyZHg=; b=D8ObldYwy/6XRe0F/FaXAAAHWgT4qQvhIuxPS/d6+GdrHXxIZ+FWfhBj M6IzmuEoGhhaWcpuyslhyCCNljHv8eZAH3cKCVEDEszjTlTa0teJYuL7f 2iPSzrUWyNzHWvF6EppCPSVBPHFT+eebWMu5cAhlFYvciw6AcvU0Lrc82 I=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AqUFAKwSslGtJV2b/2dsb2JhbABZgwmDJbt6gQAWdIIjAQEBBDpRAQgYChRCJQEBBAESCIdzAw+9A4xbgiw4gnthA6kCgw+CJw
X-IronPort-AV: E=Sophos;i="4.87,823,1363132800"; d="scan'208";a="220132444"
Received: from rcdn-core-4.cisco.com ([173.37.93.155]) by rcdn-iport-8.cisco.com with ESMTP; 07 Jun 2013 17:08:41 +0000
Received: from xhc-rcd-x02.cisco.com (xhc-rcd-x02.cisco.com [173.37.183.76]) by rcdn-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id r57H8eLN032186 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 7 Jun 2013 17:08:40 GMT
Received: from xmb-rcd-x10.cisco.com ([169.254.15.56]) by xhc-rcd-x02.cisco.com ([173.37.183.76]) with mapi id 14.02.0318.004; Fri, 7 Jun 2013 12:08:40 -0500
From: "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>
To: Markus Lanthaler <markus.lanthaler@gmx.net>, "json@ietf.org" <json@ietf.org>
Thread-Topic: [Json] Allow any JSON value at the top level
Thread-Index: Ac5jMj7wK5i9s5prS+2npykXIGILbgALg8dAAA49wAA=
Date: Fri, 07 Jun 2013 17:08:40 +0000
Message-ID: <A723FC6ECC552A4D8C8249D9E07425A70FC33B5B@xmb-rcd-x10.cisco.com>
In-Reply-To: <00d601ce6360$52acce30$f8066a90$@lanthaler@gmx.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.3.4.130416
x-originating-ip: [64.101.72.72]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <85B58DF4B4C8E74B865F4CEC8C4899B6@emea.cisco.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
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:08:48 -0000

On 6/7/13 3:20 AM, "Markus Lanthaler" <markus.lanthaler@gmx.net> wrote:

>On Friday, June 07, 2013 5:51 AM, Manger, James H wrote:
>> I propose allowing a JSON text to be any JSON value.
>> 
>>    A JSON text is a serialization of any JSON value.
>> 
>>    JSON-text = value
>> 
>>    value = false / null / true / object / array / number / string
>
>I'm strictly against this. Not only would it break many implementations
>but
>also specs build on top of JSON that rely on JSON-text = object / array.

What about a new production in parallel to JSON-text, like 'JSON-document'?

-- 
Joe Hildebrand