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

Julian Reschke <julian.reschke@gmx.de> Wed, 23 November 2011 09:12 UTC

Return-Path: <julian.reschke@gmx.de>
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 603BF21F8C41 for <apps-discuss@ietfa.amsl.com>; Wed, 23 Nov 2011 01:12:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.306
X-Spam-Level:
X-Spam-Status: No, score=-104.306 tagged_above=-999 required=5 tests=[AWL=-1.707, BAYES_00=-2.599, 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 lR1ni57GC7-0 for <apps-discuss@ietfa.amsl.com>; Wed, 23 Nov 2011 01:12:37 -0800 (PST)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by ietfa.amsl.com (Postfix) with SMTP id 2B75721F8C40 for <apps-discuss@ietf.org>; Wed, 23 Nov 2011 01:12:36 -0800 (PST)
Received: (qmail invoked by alias); 23 Nov 2011 09:12:34 -0000
Received: from p5DCC2ED4.dip.t-dialin.net (EHLO [192.168.178.36]) [93.204.46.212] by mail.gmx.net (mp011) with SMTP; 23 Nov 2011 10:12:34 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1+aj1FxSW6aC/xnhnMl9eq8iC4Fkfl/4O6vek6+CM nujwrRywQUKJMJ
Message-ID: <4ECCB8FA.20804@gmx.de>
Date: Wed, 23 Nov 2011 10:12:26 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: Martin Thomson <martin.thomson@gmail.com>
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>
In-Reply-To: <CABkgnnXk7K2ZGS-1-rjm8zeCUbyUM3PbmkNzt4wjM4CPGXFkPg@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Y-GMX-Trusted: 0
Cc: Mark Nottingham <mnot@mnot.net>, IETF Apps Discuss <apps-discuss@ietf.org>
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 09:12:38 -0000

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