Re: [Json] Strings

Tim Bray <tbray@textuality.com> Thu, 06 June 2013 16:49 UTC

Return-Path: <tbray@textuality.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 628CE21F9A0D for <json@ietfa.amsl.com>; Thu, 6 Jun 2013 09:49:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.037
X-Spam-Level:
X-Spam-Status: No, score=0.037 tagged_above=-999 required=5 tests=[AWL=-0.414, BAYES_00=-2.599, FH_RELAY_NODNS=1.451, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_SORBS_DUL=0.877, RDNS_NONE=0.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 Y6gWiko4KNEy for <json@ietfa.amsl.com>; Thu, 6 Jun 2013 09:49:03 -0700 (PDT)
Received: from mail-vb0-x232.google.com (mail-vb0-x232.google.com [IPv6:2607:f8b0:400c:c02::232]) by ietfa.amsl.com (Postfix) with ESMTP id 7941E21F9A0C for <json@ietf.org>; Thu, 6 Jun 2013 09:48:50 -0700 (PDT)
Received: by mail-vb0-f50.google.com with SMTP id w16so2081257vbb.23 for <json@ietf.org>; Thu, 06 Jun 2013 09:48:49 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=gBDWuWtUU3PPRbm+BDAYe9d5YQqPmxv+1osvRclE1ns=; b=nyZUp83RmHFFyoO3AQAs4i5dCnjpotDFftw2oaChh80qAWsftBkCVXvDv/8AQ6Uj2F Xfqc5HZfYxvJ8/qXB7t+o6rjxjCfIfMmKEfofSH6HvlJA2ZGgrFZ2aCsfhACIKJ5Bjod 0Cz7h9Xuwry+y7wLdlbPf370Q+yZ5FWP6ciNYSkm3YsIPeJFyxrOXerjInR1ArAxD+iN fDcK2P+Gjcwov7SzZDxgcCVfaDvytMhXVC83/IfhOVwcpPntwkZ8Cbr9F5FsChoOHNtA osmk5Ywjta7Gcn4Jr4OoJLU1YLKTBYT3o9yPtdlggedTbyAcf8WDhZlQRWB/WVXuDlz/ GPDw==
MIME-Version: 1.0
X-Received: by 10.52.93.8 with SMTP id cq8mr5143478vdb.77.1370537329623; Thu, 06 Jun 2013 09:48:49 -0700 (PDT)
Received: by 10.220.48.14 with HTTP; Thu, 6 Jun 2013 09:48:49 -0700 (PDT)
X-Originating-IP: [96.49.81.176]
In-Reply-To: <BF7E36B9C495A6468E8EC573603ED9411527E361@xmb-aln-x11.cisco.com>
References: <A723FC6ECC552A4D8C8249D9E07425A70FC2E23E@xmb-rcd-x10.cisco.com> <38C1C408-3AF4-4CF2-96E1-9544C54B0531@vpnc.org> <BF7E36B9C495A6468E8EC573603ED9411527E361@xmb-aln-x11.cisco.com>
Date: Thu, 06 Jun 2013 09:48:49 -0700
Message-ID: <CAHBU6iuWbrNroqGYhG66+n6EDK_SviQQgmtesMZJVs0FYLahOw@mail.gmail.com>
From: Tim Bray <tbray@textuality.com>
To: "Matt Miller (mamille2)" <mamille2@cisco.com>
Content-Type: multipart/alternative; boundary="20cf307f3ad8af1be504de7f16df"
X-Gm-Message-State: ALoCoQmwpybrYiU8ZVcYI5IdQ14xW4ycvp5oH91CcoYfWKO8+2p4eY+Z+8V8NBGoAmF3ZXCyCEvC
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] Strings
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 06 Jun 2013 16:49:07 -0000

If keys are unicode strings, the proper languagee is:

“For purpose of establishing key equality, comparisons MUST be conducted,
after all escaping is done, on a character-by-character basis by comparing
numeric character codepoints. There is to be no modification of any kind to
the characters in keys, including case-changing or combining-form
normalization.”


On Thu, Jun 6, 2013 at 9:43 AM, Matt Miller (mamille2)
<mamille2@cisco.com>wrote:

>
> On Jun 6, 2013, at 8:59 AM, Paul Hoffman <paul.hoffman@vpnc.org> wrote:
>
> > On Jun 5, 2013, at 8:35 PM, Joe Hildebrand (jhildebr) <
> jhildebr@cisco.com> wrote:
> >
> >> On 6/5/13 6:14 PM, "Paul Hoffman" <paul.hoffman@vpnc.org> wrote:
> >>
> >>> Proposed wording: just before the ABNF at the end of section 2.5, add:
> >>>
> >>> When comparing strings, escaped characters SHOULD compare the same as
> >>> their unescaped counterparts. For example, the following three strings
> >>> SHOULD be considered equivalent for comparisons:
> >>
> >>
> >> Are you sure you want to open pandora's box of comparing strings?
> >
> > Yes. String comparison is used for object keys, which is a hot topic in
> another thread.
> >
> > { "a": 1, "\u0061": 2 }
> >
>
> To (probably vainly) help keep a lid on the box, do we need to note there
> is no expectation of normalization?
>
>
> - m&m
>
> Matt Miller < mamille2@cisco.com >
> Cisco Systems, Inc.
>
>
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json
>
>