Re: [apps-discuss] draft-pbryan-zyp-json-pointer: name syntax for non-ASCII

"Paul C. Bryan" <paul.bryan@forgerock.com> Wed, 23 November 2011 18:12 UTC

Return-Path: <paul.bryan@forgerock.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 DA18F21F8B5C for <apps-discuss@ietfa.amsl.com>; Wed, 23 Nov 2011 10:12:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.648
X-Spam-Level:
X-Spam-Status: No, score=-6.648 tagged_above=-999 required=5 tests=[AWL=-0.050, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4]
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 IVlFPjWVK-0u for <apps-discuss@ietfa.amsl.com>; Wed, 23 Nov 2011 10:12:10 -0800 (PST)
Received: from eu1sys200aog113.obsmtp.com (eu1sys200aog113.obsmtp.com [207.126.144.135]) by ietfa.amsl.com (Postfix) with SMTP id 00F5A21F8B46 for <apps-discuss@ietf.org>; Wed, 23 Nov 2011 10:12:09 -0800 (PST)
Received: from mail-yx0-f180.google.com ([209.85.213.180]) (using TLSv1) by eu1sys200aob113.postini.com ([207.126.147.11]) with SMTP ID DSNKTs03eWhrLmO/qUHqkWgr4Dbh+2Ir8cUe@postini.com; Wed, 23 Nov 2011 18:12:10 UTC
Received: by mail-yx0-f180.google.com with SMTP id l7so933431yen.11 for <apps-discuss@ietf.org>; Wed, 23 Nov 2011 10:12:09 -0800 (PST)
Received: by 10.101.115.1 with SMTP id s1mr5542858anm.164.1322071928853; Wed, 23 Nov 2011 10:12:08 -0800 (PST)
Received: from [192.168.1.3] (S0106a021b762dbb3.vf.shawcable.net. [174.1.40.184]) by mx.google.com with ESMTPS id m33sm50705640ann.4.2011.11.23.10.12.07 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 23 Nov 2011 10:12:07 -0800 (PST)
Message-ID: <1322071926.6133.20.camel@neutron>
From: "Paul C. Bryan" <paul.bryan@forgerock.com>
To: apps-discuss@ietf.org
Date: Wed, 23 Nov 2011 10:12:06 -0800
In-Reply-To: <4ECCB8FA.20804@gmx.de>
References: <4ECA5C66.1040305@gmx.de> <1321903463.1990.16.camel@neutron> <4ECAA9FE.6080802@gmx.de> <1321905599.1990.23.camel@neutron> <4ECAAF39.8000702@gmx.de> <1321906189.1990.26.camel@neutron> <4ECAB0BC.0@gmx.de> <6462023D-F767-45DE-9AF0-011CC48374CF@mnot.net> <F7E6E395-463D-4D0C-A352-EAD4B5A27202@tzi.org> <4ECB9E69.8090505@gmx.de> <CABkgnnXk7K2ZGS-1-rjm8zeCUbyUM3PbmkNzt4wjM4CPGXFkPg@mail.gmail.com> <4ECCB8FA.20804@gmx.de>
Content-Type: multipart/alternative; boundary="=-vHnBBPWbRaxPTfRnKUmA"
X-Mailer: Evolution 3.0.3-2
Mime-Version: 1.0
Subject: Re: [apps-discuss] draft-pbryan-zyp-json-pointer: name syntax for non-ASCII
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: Wed, 23 Nov 2011 18:12:12 -0000

So far I can't say I like it very much. Is the suggestion that every
member name in a JSON pointer reference must contain \" ... \"? This
makes for one ugly pointer in JSON, and absolutely guarantees that a
fragment identifier will contain multiple percent-encoded values, even
if there are no members that contain path delimiters.

#/a/b/c ← intuitive
#/%5C%22a%5C%22/%5C%22b%5C%22/%5C%22c%5C%22 ← not!  

Paul

On Wed, 2011-11-23 at 10:12 +0100, Julian Reschke wrote:

> On 2011-11-23 00:17, Martin Thomson wrote:
> >> So yes, the fact that a JSON name can be anything a JSON string can take is
> >> indeed a problem, because it doesn't leave us any characters as delimiters
> >> (so this is very different from XML vs XPath).
> >
> > Maybe you could use a JSON string notation as your canonical form:
> >
> > { "Bjørn/Carsten/foo \uD834\uDD1E" : "Fritz" }
> > ->
> > "/\"Bjørn/Carsten/foo \uD834\uDD1E\""
> 
> I like that.
> 
> Best regards, Julian
> 
> _______________________________________________
> apps-discuss mailing list
> apps-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/apps-discuss