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

Martin Thomson <martin.thomson@gmail.com> Tue, 22 November 2011 23:17 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 7BDAD11E80BA for <apps-discuss@ietfa.amsl.com>; Tue, 22 Nov 2011 15:17:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 b7jFK5R9ob4b for <apps-discuss@ietfa.amsl.com>; Tue, 22 Nov 2011 15:17:26 -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 5F40011E80B3 for <apps-discuss@ietf.org>; Tue, 22 Nov 2011 15:17:26 -0800 (PST)
Received: by bkbzv15 with SMTP id zv15so471040bkb.31 for <apps-discuss@ietf.org>; Tue, 22 Nov 2011 15:17:25 -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:content-transfer-encoding; bh=tJkg4C8QDb/bHcJrxMsnBOA1vuZCxSNoywF6iU2tpqU=; b=wplLnOnIl7C0X6mTSn44S+ScbQY7DeSQbKJyAApiq3+I3Qxj9wl6Q8pQDvFiZo28ya z/i+75wOQuPZQ5NiAkcVjuod4gkcH6mCGoi+lxeJUgbtmOMrvYNP4iedTj+iFhSBfUh+ zCQgG+ir8fviXm9FdPnucmRWe+/HcxR/BltIw=
MIME-Version: 1.0
Received: by 10.205.128.15 with SMTP id hc15mr20702309bkc.110.1322003845458; Tue, 22 Nov 2011 15:17:25 -0800 (PST)
Received: by 10.204.72.210 with HTTP; Tue, 22 Nov 2011 15:17:25 -0800 (PST)
In-Reply-To: <4ECB9E69.8090505@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>
Date: Wed, 23 Nov 2011 10:17:25 +1100
Message-ID: <CABkgnnXk7K2ZGS-1-rjm8zeCUbyUM3PbmkNzt4wjM4CPGXFkPg@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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: Tue, 22 Nov 2011 23:17:27 -0000

> 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\""