[Json] Fwd: RFC 4627bis vs RFC 6902 (JSON Patch)

Francis Galiegue <fgaliegue@gmail.com> Thu, 20 February 2014 18:19 UTC

Return-Path: <fgaliegue@gmail.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8771E1A0053 for <json@ietfa.amsl.com>; Thu, 20 Feb 2014 10:19:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9r4zN1NIF6Ur for <json@ietfa.amsl.com>; Thu, 20 Feb 2014 10:19:29 -0800 (PST)
Received: from mail-ee0-x234.google.com (mail-ee0-x234.google.com [IPv6:2a00:1450:4013:c00::234]) by ietfa.amsl.com (Postfix) with ESMTP id 3E9911A0047 for <json@ietf.org>; Thu, 20 Feb 2014 10:19:29 -0800 (PST)
Received: by mail-ee0-f52.google.com with SMTP id c41so256707eek.39 for <json@ietf.org>; Thu, 20 Feb 2014 10:19:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mu6ulQVWZh+kboxPY3ToKygVbZLTLy3mQUn0pyHsEdc=; b=YtRenY9vDKtIHxHzVY+9OENTUNkcMRAQFmhaoqta0iKUKK8vsaoL4qSCQ3iv2fsHzi Oo5YiqQNKs4Gtc+J0lHpR/OJWfwm7nNw5KqFnsoxs+BvF++xowfnb7FOfPe0oPEXBO+j dq5+4UINgNnMrdusVJ2hEaPO9YqpPW871taeH7JYt2id5o3C9Vb0A/NCozYad1iutQn0 1mQM1FupxTOexC7JNRJFPC1LmDzf3rScSSk+w/ilQ5gsm7tEME6KSy75Mb2iJan6HyhT J42V7tVLuaFlSZ4agt+VKD0cBOQMaZ7Cavue/k8IrqpbIXywlHZNc488tC8c8EscHrCW bGYw==
MIME-Version: 1.0
X-Received: by 10.15.56.130 with SMTP id y2mr3405204eew.17.1392920365198; Thu, 20 Feb 2014 10:19:25 -0800 (PST)
Received: by 10.14.223.132 with HTTP; Thu, 20 Feb 2014 10:19:25 -0800 (PST)
In-Reply-To: <CALcybBAi9bvcnctLVHqaC0HDeJ-+rf1AyoaFu5vpE2oEE7+Nnw@mail.gmail.com>
References: <CALcybBCTih9A6RL=r4WYrqf05rHsjgF4tEJP3cTY2FAmONRQaw@mail.gmail.com> <CAK3OfOhp1C7724Qgwj98SMd0fupLdEWSGM16D6ZA8CD-ik7LvA@mail.gmail.com> <CALcybBAi9bvcnctLVHqaC0HDeJ-+rf1AyoaFu5vpE2oEE7+Nnw@mail.gmail.com>
Date: Thu, 20 Feb 2014 19:19:25 +0100
Message-ID: <CALcybBA4nkYM_ikRXU=Pb0aZ0tT4gtpQUbiOatioGcgjKHpRpg@mail.gmail.com>
From: Francis Galiegue <fgaliegue@gmail.com>
To: json@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/RhRGsrV0mguOfP6KA85wPHlJBmo
Subject: [Json] Fwd: RFC 4627bis vs RFC 6902 (JSON Patch)
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
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: Thu, 20 Feb 2014 18:19:31 -0000

Sorry, user error, didn't find its way to the list


---------- Forwarded message ----------
From: Francis Galiegue <fgaliegue@gmail.com>
Date: Thu, Feb 20, 2014 at 7:17 PM
Subject: Re: [Json] RFC 4627bis vs RFC 6902 (JSON Patch)
To: Nico Williams <nico@cryptonector.com>


On Thu, Feb 20, 2014 at 6:36 PM, Nico Williams <nico@cryptonector.com> wrote:
[...]
>>
>> What are your thoughts?
>
> I don't see the conflict.
>
> FYI, text in RFC4627bis was arrived at after very many and lengthy
> (well over 1,000 posts) threads on the JSON WG list.  I'd summarize
> the part about duplicate names as:
>
> The nature of JSON as it is used in the wild is such that RFC4627bis
> couldn't require any specific parser behavior as to duplicate names --
> the canonical example is online parsers, whose very purpose is to keep
> minimal state while parsing, which means that they can't detect
> duplicate names, which means that specific parser behavior regarding
> duplicate names could not be REQUIRED.  (There was also a question of
> whether specific behavior could be required of the parser _and_
> application together, and the conclusion was also "no".)
>

OK, then what about constraints on JSON emission instead? RFC 4627bis
section 10 does mention that any emitted JSON must be conform to the
grammar; can't a condition be added that in the case of JSON objects,
they SHOULD ensure about the uniqueness of member names?

Admittely, I can live with the texts as they currently stands; it is
just that this shadowy area leaves an acrid aftertaste in my mouth,
that's all ;)

--
Francis Galiegue, fgaliegue@gmail.com
JSON Schema in Java: http://json-schema-validator.herokuapp.com


-- 
Francis Galiegue, fgaliegue@gmail.com
JSON Schema in Java: http://json-schema-validator.herokuapp.com