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

Jorge <jorge@jorgechamorro.com> Fri, 07 June 2013 20:08 UTC

Return-Path: <jorge@jorgechamorro.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 0211921F995F for <json@ietfa.amsl.com>; Fri, 7 Jun 2013 13:08:01 -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]
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 wmAg9EPadRte for <json@ietfa.amsl.com>; Fri, 7 Jun 2013 13:08:00 -0700 (PDT)
Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) by ietfa.amsl.com (Postfix) with ESMTP id 3843721F995E for <json@ietf.org>; Fri, 7 Jun 2013 13:08:00 -0700 (PDT)
Received: by mail-wi0-f172.google.com with SMTP id c10so1541990wiw.17 for <json@ietf.org>; Fri, 07 Jun 2013 13:07:59 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=HAD7+MCcc84rwGFtVdiLYctaa9DJSAVukNlhNECv1C4=; b=Axa64gWaEM9UL8rwBkbibXgPf0w/ZYfF/kuoAJv+PA4F8WRMmxVMOct364LsXSIuf3 VU1IXEWWXKQw63+BmMWPdpn5S48f2Gb4ZNqMV/Jy/YCka9Zvg8gQK91CADWZSfjTbuDc xC/B7D99aqF3Ud4KpC9Y5UB/Zx47vcDx3M/FjjNKf7+qgnLktYipM2DHQ2eUd4VNyllg TnoE0nsJSkG+Jg0ntMIcP4Na/DQvKv4Mv0TPZD75Qovz1+6I0VRnsHkx91QXSABvd5nZ 14H9//nz1esYYKt83fLuXdtuN64uUGXZPYPxhDGaxx9z5omBPFmhUllQDmZSYrEiL7Vj pVZg==
X-Received: by 10.194.7.137 with SMTP id j9mr202667wja.11.1370635679231; Fri, 07 Jun 2013 13:07:59 -0700 (PDT)
Received: from [192.168.10.50] (70.Red-79-155-116.dynamicIP.rima-tde.net. [79.155.116.70]) by mx.google.com with ESMTPSA id ft10sm310459wib.7.2013.06.07.13.07.57 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Jun 2013 13:07:58 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1085)
Content-Type: text/plain; charset="us-ascii"
From: Jorge <jorge@jorgechamorro.com>
In-Reply-To: <A00C1298-57BF-49DE-8486-D6EAB828F833@yahoo.com>
Date: Fri, 07 Jun 2013 22:02:43 +0200
Content-Transfer-Encoding: 7bit
Message-Id: <E33E755D-8F75-4E35-B3C2-33501AE0794F@jorgechamorro.com>
References: <255B9BB34FB7D647A506DC292726F6E1151B21F9A9@WSMSG3153V.srv.dir.telstra.com> <A2D3D8F3-1EB3-4CD6-A331-4EDCDB7F9798@tzi.org> <A00C1298-57BF-49DE-8486-D6EAB828F833@yahoo.com>
To: Vinny A <jsontest@yahoo.com>
X-Mailer: Apple Mail (2.1085)
X-Gm-Message-State: ALoCoQnta6tcXRAowz8iDjUabEApv1DNMeoI28+25pjY8wEJLNz3f9TiSsl81EQ1vN4yhCN5KsXA
Cc: Carsten Bormann <cabo@tzi.org>, "Manger, James H" <James.H.Manger@team.telstra.com>, 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 20:59:28 -0000

On 07/06/2013, at 15:38, Vinny A wrote:
> 
> Do commonly used parsers support top level JSON values?

Yes:

JSON.parse('"string"')
"string"
JSON.parse('27')
27
JSON.parse('true')
true
JSON.parse('false')
false
JSON.parse('null')
null

-- 
( Jorge )();