Re: [Json] The names within an object SHOULD be unique.

Vinny A <jsontest@yahoo.com> Fri, 07 June 2013 15:19 UTC

Return-Path: <jsontest@yahoo.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 A2E7E21F92B8 for <json@ietfa.amsl.com>; Fri, 7 Jun 2013 08:19:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.461
X-Spam-Level:
X-Spam-Status: No, score=-0.461 tagged_above=-999 required=5 tests=[AWL=0.743, BAYES_00=-2.599, MIME_QP_LONG_LINE=1.396]
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 qIwbEevQRKXf for <json@ietfa.amsl.com>; Fri, 7 Jun 2013 08:19:17 -0700 (PDT)
Received: from nm37.bullet.mail.gq1.yahoo.com (nm37.bullet.mail.gq1.yahoo.com [98.136.217.20]) by ietfa.amsl.com (Postfix) with ESMTP id EDCF721F9050 for <json@ietf.org>; Fri, 7 Jun 2013 08:19:16 -0700 (PDT)
Received: from [98.137.12.62] by nm37.bullet.mail.gq1.yahoo.com with NNFMP; 07 Jun 2013 15:19:16 -0000
Received: from [98.136.185.40] by tm7.bullet.mail.gq1.yahoo.com with NNFMP; 07 Jun 2013 15:19:16 -0000
Received: from [127.0.0.1] by smtp101.mail.gq1.yahoo.com with NNFMP; 07 Jun 2013 15:19:16 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1370618356; bh=aoYT/iMt/aQdY/n//4Kz7Fb/HT0iQU7fLvDxsVrV2Lk=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:References:In-Reply-To:Mime-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Cc:X-Mailer:From:Subject:Date:To; b=uAeEmvl76KuQbyMzseXgzg/vyBs6tA8n8L/ZGyb2cm8X3+Ls0lNgXM+EgEC/j9EHMfX4NOPOafxQ8v4gJ0Exhm6y/2byQLzV3eLRL/4wQTKMugyKhXnXvETmiv44LosAUiaJmM8lHwkVK2ci7nym0Na97ZG0dqlb0ouiE7nQcAw=
X-Yahoo-Newman-Id: 355916.31492.bm@smtp101.mail.gq1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: JNAhERoVM1kl54RrGEmwgK4Nr9wber2KHQVaa9pe1PKh2Ta JLTKeZbw4GjMThFzo2.D5ZA1f6Jz7zcZhd52fjarVnb6tn4DoynClmUcazrA t2vOPkntwrNYj_8vOD0uBzD8x4L5r7Rp7z214WEa7alvS5eVF5ssI9EG3aBk oLy6xZVNg_HA_pm30zaYGsLH602dNNLvUEF3drR4qpcDB2GlXlh6SVI4NDey gW9aQlPApeGjRaeMu.McrTBl9JiXhCwpbmKjGHILY5IDL1YuphlLKskHuuMJ Sr2rRqTnV6UQTbD5B3vd5fkD6ekiDMpU_KuyXwjssyRBavHF2AZrmxWKq1os ap6_4HHJm6ae7PykwJD4.URtHJcMyxNuLlegHFlXhWzYOmpa_8WHh_ys8_vu ZX4TAUQ0Fyy2dph6zfTpxsBfbgO8BYkF3_x9PI9lDL5AxPbowWYwUvzUrdSc ntN_LwICT.aztP_WrAUapsGSDvMQQUVJtNxMlrZeJJyqxWl2M.Ag.6WovQ_I ySfYxDginY.km2SU6ZJOh4V4sSQ--
X-Yahoo-SMTP: indQcmSswBC8IKsm6t4aCAPskK3T
X-Rocket-Received: from [192.168.10.95] (jsontest@64.134.39.87 with ) by smtp101.mail.gq1.yahoo.com with SMTP; 07 Jun 2013 08:19:16 -0700 PDT
References: <51AF8479.5080002@crockford.com> <CAK3OfOgtYoPRZ-Gj5G8AnNipDyxYs=6_KD=rQTxKbhDPX6FZNA@mail.gmail.com> <51b1168c.e686440a.5339.5fc4SMTPIN_ADDED_BROKEN@mx.google.com> <CAK3OfOhL3zXHfg9EEDWLXhjLQ1aBvvxikKAiR+nUpDHJaVh+Qg@mail.gmail.com> <009801ce635e$0bef7080$23ce5180$@lanthaler@gmx.net> <51B1B47C.9060009@drees.name> <C86A9758-5BEF-415C-BD17-DC5E757FAA7E@yahoo.com> <51B1E909.2010402@drees.name>
In-Reply-To: <51B1E909.2010402@drees.name>
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Message-Id: <F6B1861A-F48E-4D89-B1D4-B44FF4A56AB1@yahoo.com>
X-Mailer: iPod Mail (9B206)
From: Vinny A <jsontest@yahoo.com>
Date: Fri, 07 Jun 2013 10:19:13 -0500
To: "stefan@drees.name" <stefan@drees.name>
Cc: Markus Lanthaler <markus.lanthaler@gmx.net>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] The names within an object SHOULD be unique.
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 15:19:22 -0000

On Jun 7, 2013, at 9:07 AM, Stefan Drees <stefan@drees.name> wrote:
> 
> NEW:
> """
> 4.  Parsers
> 
> A JSON parser transforms JSON text into another representation,
> MUST accept all texts that conform to the JSON grammar and MUST be
> prepared to either accept duplicate names in objects or reject the
> complete JSON text containing these.
> A JSON parser MAY accept non-JSON forms or extensions.
> 
> An implementation may set limits on any of the following: the size
> of texts that it accepts, the maximum depth of nesting, the range of
> numbers, and the length and character contents of strings.
> 
> 5.  Generators
> 
> A JSON generator produces JSON text.  The resulting text MUST
> strictly conform to the JSON grammar.
> 
> Generators SHOULD NOT duplicate names in objects if they can avoid
> or detect such duplication.
> 
> """


+1, with the understanding that some parsers (in particular streaming parsers) will not be able to reject the "complete JSON text" because they've already sent earlier parts of the JSON text for processing by other app components.

But that's a bit nitpicky, so feel free to keep the current text as-is.



-----------------
Vinny
www.jsontest.com