Re: [apps-discuss] JSON Patch

"Martin J. Dürst" <duerst@it.aoyama.ac.jp> Thu, 24 November 2011 07:14 UTC

Return-Path: <duerst@it.aoyama.ac.jp>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 453051F0C47 for <apps-discuss@ietfa.amsl.com>; Wed, 23 Nov 2011 23:14:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -99.43
X-Spam-Level:
X-Spam-Status: No, score=-99.43 tagged_above=-999 required=5 tests=[AWL=-0.240, BAYES_00=-2.599, HELO_EQ_JP=1.244, HOST_EQ_JP=1.265, J_CHICKENPOX_14=0.6, MIME_8BIT_HEADER=0.3, USER_IN_WHITELIST=-100]
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 sD5BTPptQi2x for <apps-discuss@ietfa.amsl.com>; Wed, 23 Nov 2011 23:14:23 -0800 (PST)
Received: from scintmta02.scbb.aoyama.ac.jp (scintmta02.scbb.aoyama.ac.jp [133.2.253.34]) by ietfa.amsl.com (Postfix) with ESMTP id 874EB21F86FF for <apps-discuss@ietf.org>; Wed, 23 Nov 2011 23:14:22 -0800 (PST)
Received: from scmse02.scbb.aoyama.ac.jp ([133.2.253.231]) by scintmta02.scbb.aoyama.ac.jp (secret/secret) with SMTP id pAO7ED6D030614 for <apps-discuss@ietf.org>; Thu, 24 Nov 2011 16:14:17 +0900
Received: from (unknown [133.2.206.133]) by scmse02.scbb.aoyama.ac.jp with smtp id 6723_7c8f_e9acd7fa_166b_11e1_afe4_001d096c5782; Thu, 24 Nov 2011 16:14:13 +0900
Received: from [IPv6:::1] ([133.2.210.1]:59958) by itmail.it.aoyama.ac.jp with [XMail 1.22 ESMTP Server] id <S157190B> for <apps-discuss@ietf.org> from <duerst@it.aoyama.ac.jp>; Thu, 24 Nov 2011 16:14:17 +0900
Message-ID: <4ECDEEC4.3050007@it.aoyama.ac.jp>
Date: Thu, 24 Nov 2011 16:14:12 +0900
From: "\"Martin J. Dürst\"" <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100722 Eudora/3.0.4
MIME-Version: 1.0
To: Martin Thomson <martin.thomson@gmail.com>
References: <4EB1482E.1040600@adobe.com> <4EB14C2E.8040208@gmx.de> <1320254564.2622.37.camel@neutron> <4EBBA0DD.9020605@gmx.de> <4ECBC843.60900@gmx.de> <255B9BB34FB7D647A506DC292726F6E113884047C4@WSMSG3153V.srv.dir.telstra.com> <CABkgnnWMWL43cjBYpXP2tfxUCwLbt5Q2hYvBvtK3A6BKKhm=BA@mail.gmail.com>
In-Reply-To: <CABkgnnWMWL43cjBYpXP2tfxUCwLbt5Q2hYvBvtK3A6BKKhm=BA@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: "apps-discuss@ietf.org" <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] JSON Patch
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Nov 2011 07:14:24 -0000

On 2011/11/24 11:08, Martin Thomson wrote:
> On 23 November 2011 12:21, Manger, James H
> <James.H.Manger@team.telstra.com>  wrote:
>> On escaping: how about replacing every '/' in an object member's name with the Unicode REPLACEMENT CHARACTER U+FFFD when creating a JSON pointer.
>
> Interesting that you choose U+FFFD in the same way that backslash was
> chosen as an escape character in the first place.  I'm not a big fan
> of that approach.

Yes, please don't. The semantics of U+FFFD is mostly a character that 
wasn't successfully converted from some other encoding. Overloading that 
with "escaping a slash" is a bad idea.

Regards,    Martin.


> It also results in a nine character escape sequence
> for a URI if you UTF-8 and %-encode.
>
>> It means a JSON pointer cannot reference an object member that actually has a U+FFFD char in its name [...]
>
> I might just start using that if you decide to prohibit it now.
>
> --Martin
> _______________________________________________
> apps-discuss mailing list
> apps-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/apps-discuss
>