[apps-discuss] Identifier comparison in draft-ietf-appsawg-json-pointer, was: Feedback on draft-ietf-appsawg-json-pointer-00
Julian Reschke <julian.reschke@gmx.de> Thu, 01 March 2012 20:30 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 543F121E8164 for <apps-discuss@ietfa.amsl.com>; Thu, 1 Mar 2012 12:30:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.091
X-Spam-Level:
X-Spam-Status: No, score=-104.091 tagged_above=-999 required=5 tests=[AWL=-1.492, 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 Dw7aToF0KxSf for <apps-discuss@ietfa.amsl.com>; Thu, 1 Mar 2012 12:30:13 -0800 (PST)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by ietfa.amsl.com (Postfix) with SMTP id 66CD221E8032 for <apps-discuss@ietf.org>; Thu, 1 Mar 2012 12:30:13 -0800 (PST)
Received: (qmail invoked by alias); 01 Mar 2012 20:30:12 -0000
Received: from p5DCC2B62.dip.t-dialin.net (EHLO [192.168.178.36]) [93.204.43.98] by mail.gmx.net (mp036) with SMTP; 01 Mar 2012 21:30:12 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX19MPa1xQ59M9RY1i78Q/TUCucNMSe4uhBUOhPwTeC BnW7F5JG1N3n6G
Message-ID: <4F4FDC50.9090306@gmx.de>
Date: Thu, 01 Mar 2012 21:30:08 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
MIME-Version: 1.0
To: Mike Acar <macar@cloudmark.com>
References: <4F4FD8A5.6010603@cloudmark.com>
In-Reply-To: <4F4FD8A5.6010603@cloudmark.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Y-GMX-Trusted: 0
Cc: IETF Apps Discuss <apps-discuss@ietf.org>
Subject: [apps-discuss] Identifier comparison in draft-ietf-appsawg-json-pointer, was: Feedback on draft-ietf-appsawg-json-pointer-00
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, 01 Mar 2012 20:30:14 -0000
On 2012-03-01 21:14, Mike Acar wrote: > Hi, > > I've been asked to review the JSON Pointer and Patch draft RFCs. I've > had some discussion about them off-list, and have been advised to bring > my issues to the list. And so, I am. :) > > I've scanned the archived list discussion of the patch and pointer RFCs, > so I don't think these issues have come up here already. Let me know if > they have. > > The first issue is comparing Unicode strings. Section 4 of > http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-00 says > > If the currently referenced value is a JSON object, the new > referenced value is the object member with the name identified by > the reference token. > > That is, if the reference token equals the name of some value within the > object, move to that value. However, the tokens and values are Unicode > strings; I'm not an expert in Unicode, but my impression is that testing > Unicode strings for equality is not as simple as comparing sequences of > bytes. For example, there are linguistic considerations: I believe > German ö and oe are considered identical. No, they aren't. The spec could be made a bit clearer by saying "code point by code point", but I would think that's the default unless otherwise stated. > There's also the question of JSON documents with different encodings; > UTF8 is the default, but UTF-16 and -32 with both endiannesses are also > supported. Presumably this question will disappear in practice, since > implementations will operate on deserialized data structures, not on > JSON texts. Indeed. > ... Best regards, Julian
- [apps-discuss] Feedback on draft-ietf-appsawg-jso… Mike Acar
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Tim Bray
- [apps-discuss] Identifier comparison in draft-iet… Julian Reschke
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Paul C. Bryan
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Martin J. Dürst
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Tim Bray
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Paul C. Bryan
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Mike Acar
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Mike Acar
- Re: [apps-discuss] Feedback on draft-ietf-appsawg… Murray S. Kucherawy
- [apps-discuss] json-pointer #5 - semantics [was: … Mark Nottingham
- Re: [apps-discuss] json-pointer #5 - semantics [w… Murray S. Kucherawy
- Re: [apps-discuss] json-pointer #5 - semantics [w… Mike Acar
- Re: [apps-discuss] json-pointer #5 - semantics [w… Paul C. Bryan
- Re: [apps-discuss] json-pointer #5 - semantics [w… Martin Thomson
- Re: [apps-discuss] json-pointer #5 - semantics [w… Paul C. Bryan
- Re: [apps-discuss] json-pointer #5 - semantics [w… Martin Thomson
- Re: [apps-discuss] json-pointer #5 - semantics [w… Mark Nottingham