Re: [Json] [apps-discuss] merge-patch in APPSA and i-json in JSON

"Martin J. Dürst" <duerst@it.aoyama.ac.jp> Fri, 11 July 2014 05:51 UTC

Return-Path: <duerst@it.aoyama.ac.jp>
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 646DF1B280F; Thu, 10 Jul 2014 22:51:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.442
X-Spam-Level:
X-Spam-Status: No, score=-0.442 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_JP=1.244, HOST_EQ_JP=1.265, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.651] autolearn=no
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 u7eIUNnvZl7u; Thu, 10 Jul 2014 22:51:45 -0700 (PDT)
Received: from scintmta01-14.scbb.aoyama.ac.jp (scintmta.scbb.aoyama.ac.jp [133.2.253.64]) by ietfa.amsl.com (Postfix) with ESMTP id 7AFC61A0AE7; Thu, 10 Jul 2014 22:51:45 -0700 (PDT)
Received: from scmeg01-14.scbb.aoyama.ac.jp (scmse.scbb.aoyama.ac.jp [133.2.253.15]) by scintmta01-14.scbb.aoyama.ac.jp (Postfix) with ESMTP id 7BA2E32E53F; Fri, 11 Jul 2014 14:51:44 +0900 (JST)
Received: from itmail2.it.aoyama.ac.jp (unknown [133.2.206.134]) by scmeg01-14.scbb.aoyama.ac.jp with smtp id 428e_752a_a9339117_aa68_4f1a_9342_4fd6a5a23f65; Fri, 11 Jul 2014 14:51:43 +0900
Received: from [IPv6:::1] (unknown [133.2.210.1]) by itmail2.it.aoyama.ac.jp (Postfix) with ESMTP id B92FCBF4C8; Fri, 11 Jul 2014 14:51:43 +0900 (JST)
Message-ID: <53BF7B58.2010409@it.aoyama.ac.jp>
Date: Fri, 11 Jul 2014 14:51:20 +0900
From: "\"Martin J. Dürst\"" <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: Larry Masinter <masinter@adobe.com>, Paul Hoffman <paul.hoffman@vpnc.org>
References: <13c1732c5d504e84b80cd82e5e8f05ab@BL2PR02MB307.namprd02.prod.outlook.com> <DE7ECD34-F035-46CC-B0B0-571039A86F3F@vpnc.org> <20140708190635.GD6016@mercury.ccil.org> <4CB92BF6-A5A0-4598-A25F-C3F51E1DFFD5@tzi.org> <7E9AAC20-63CC-48EC-81EE-3F53CB3DEF83@vpnc.org> <4e1c044bf224420f94d1ebfb584f40ff@BL2PR02MB307.namprd02.prod.outlook.com> <7B8DAF84-E799-46A5-BC55-5BF34000A548@vpnc.org> <4ee005b6cf4043b6b5cbe8493e82f14f@BL2PR02MB307.namprd02.prod.outlook.com> <4554206C-0046-4AF2-A893-55949EA9DCF5@vpnc.org > <f1a0f112b4dc4fd0a0fe334272c9a996@BL2PR02MB307.namprd02.prod.outlook.com>
In-Reply-To: <f1a0f112b4dc4fd0a0fe334272c9a996@BL2PR02MB307.namprd02.prod.outlook.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/json/Z5JVeZuY1gp_FLC1wsj5PmRbjtQ
Cc: "apps-discuss@ietf.org" <apps-discuss@ietf.org>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] [apps-discuss] merge-patch in APPSA and i-json in JSON
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: Fri, 11 Jul 2014 05:51:47 -0000

On 2014/07/11 05:40, Larry Masinter wrote:
>>> I also think it would be advisable to disallow duplicate names
>>> in application/merge-patch+json, but that requiring the other
>>> features of I-json is unnecessary.
>>
>> There is no need to re-argue what RFC 7159 says about this.
>
> I don't want to re-argue the decision. I'm just wondering
> "if i-json is useful, why isn't it useful for this?"

Thinking about it, it looks to me as if i-json and merge-patch are 
orthogonal, in the following sense:

If the original document and the patch data are i-json, then the result 
of applying the patch is guaranteed to be i-json.

I haven't checked this fully, but it seems to be the case at least for 
the lack of duplicate keys, and for restricted value ranges.

If that's the case, then that would provide a data point that these two 
specs are well designed, just not in the way Larry was looking for.

Regards,   Martin.


> i-json is being proposed as an IETF RFC describing a particularly
> interesting profile of JSON, giving it a special name, "I-JSON"
> based on the claim that this profile is more interesting
> than most other combinations of restrictions.
>
> But here's an application (application/ merge-patch+json)
> which -- as you point out -- doesn't mention I-JSON,
> even though some of the constraints of "which instances
> are meaningful to apply" would seem to be more easily
> expressed as a well-known profile of JSON. Just not
> I-JSON. The restriction on duplicate names is fine, but
> there's no need to restrict numbers to IEEE precision
> in the patch request.
>
> Mergepatch is one data point, are there other JSON
> application specs that COULD use i-json as a
> normative reference?
>
> If most cases of JSON application specifications that
> need 'clean JSON input required for results to be
> meaningful' profiles can't use I-JSON as a basis
> for 'clean', it casts doubts as to defining I-JSON as
> a category, rather than just a set of best practices.
>
>
> Larry
> --
> http://larry.masinter.net
>
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json
>