Re: [apps-discuss] JSON Patch

Martin Thomson <martin.thomson@gmail.com> Thu, 24 November 2011 02:08 UTC

Return-Path: <martin.thomson@gmail.com>
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 0499C21F86C3 for <apps-discuss@ietfa.amsl.com>; Wed, 23 Nov 2011 18:08:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.299
X-Spam-Level:
X-Spam-Status: No, score=-3.299 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, J_CHICKENPOX_14=0.6, RCVD_IN_DNSWL_LOW=-1]
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 EIReHlHRtp7n for <apps-discuss@ietfa.amsl.com>; Wed, 23 Nov 2011 18:08:31 -0800 (PST)
Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by ietfa.amsl.com (Postfix) with ESMTP id 380CF21F8783 for <apps-discuss@ietf.org>; Wed, 23 Nov 2011 18:08:31 -0800 (PST)
Received: by bkbzv15 with SMTP id zv15so2188062bkb.31 for <apps-discuss@ietf.org>; Wed, 23 Nov 2011 18:08:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=R1Ayp3cjqxgVuU0YpCwyaAPxUyDItaQDSQjNayX0xok=; b=yECTPJ+Tp9dRgxz1Dgv23QtmF7a0lo+3JWl5KSuSr0HSnaYDUU73Cc+eiSp0RNu1Vw ib90PlDRLw3KyOTDdHcE+5QWdkZM+15yvOr2l6A4kNcRqOxCM17bv1wyjkyjF2YFZVGl +KWuJLqUeDYNz+rt7e3SIHkfE7+Egy2Yy4V0c=
MIME-Version: 1.0
Received: by 10.205.133.16 with SMTP id hw16mr25953162bkc.128.1322100510257; Wed, 23 Nov 2011 18:08:30 -0800 (PST)
Received: by 10.204.72.210 with HTTP; Wed, 23 Nov 2011 18:08:30 -0800 (PST)
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E113884047C4@WSMSG3153V.srv.dir.telstra.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>
Date: Thu, 24 Nov 2011 13:08:30 +1100
Message-ID: <CABkgnnWMWL43cjBYpXP2tfxUCwLbt5Q2hYvBvtK3A6BKKhm=BA@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: "Manger, James H" <James.H.Manger@team.telstra.com>
Content-Type: text/plain; charset=UTF-8
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 02:08:32 -0000

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.  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