Re: [Json] I-D Action: draft-ietf-jsonbis-rfc7159bis-04.txt

Pete Cordell <petejson@codalogic.com> Fri, 21 July 2017 21:43 UTC

Return-Path: <petejson@codalogic.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 292801241FC for <json@ietfa.amsl.com>; Fri, 21 Jul 2017 14:43:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.919
X-Spam-Level:
X-Spam-Status: No, score=-0.919 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bf1tXnoMYc3z for <json@ietfa.amsl.com>; Fri, 21 Jul 2017 14:43:28 -0700 (PDT)
Received: from ppsa-online.com (lvps217-199-162-192.vps.webfusion.co.uk [217.199.162.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EA2C71201F2 for <json@ietf.org>; Fri, 21 Jul 2017 14:43:27 -0700 (PDT)
Received: (qmail 22122 invoked from network); 21 Jul 2017 22:35:10 +0100
Received: from host109-155-118-120.range109-155.btcentralplus.com (HELO ?192.168.1.72?) (109.155.118.120) by lvps217-199-162-217.vps.webfusion.co.uk with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 21 Jul 2017 22:35:10 +0100
To: Carsten Bormann <cabo@tzi.org>
Cc: Julian Reschke <julian.reschke@gmx.de>, json@ietf.org
References: <150047191184.7507.7143481683564082881@ietfa.amsl.com> <DB9BA7EA-D393-4079-B347-620A09280B26@isode.com> <CAC4RtVBYMrRCrUZ1qqD+_rH4M8N23GOgbbh=921fEYqH+gCm5Q@mail.gmail.com> <c06e583a-965e-9eaf-975f-e6876ac056ed@filament.com> <f1a6b553-c787-e248-67bd-74d68d98a845@gmx.de> <262E8314-263A-4443-B912-AFCF1A3277B2@tzi.org> <2e6f5ead-1c20-d727-87a7-bbfe75ed4896@codalogic.com> <82da41d9-ab0b-ae9b-55f8-d17dc65bb61f@gmx.de> <899d8a84-a46e-e95a-6fe0-e5812655f5b8@codalogic.com> <2C2529CA-2F7F-422B-9DD7-4144F05AF88E@tzi.org>
From: Pete Cordell <petejson@codalogic.com>
Message-ID: <97472d4f-2189-9275-81e3-dfd67a46d8e5@codalogic.com>
Date: Fri, 21 Jul 2017 22:43:24 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <2C2529CA-2F7F-422B-9DD7-4144F05AF88E@tzi.org>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-GB
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/5Q6ZV6I0rBozYAEMWEQ4SxQJqxc>
Subject: Re: [Json] I-D Action: draft-ietf-jsonbis-rfc7159bis-04.txt
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.22
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: <https://mailarchive.ietf.org/arch/browse/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: Fri, 21 Jul 2017 21:43:30 -0000

On 21/07/2017 14:35, Carsten Bormann wrote:
> On Jul 21, 2017, at 10:27, Pete Cordell <petejson@codalogic.com> wrote:
>>
>> Good point.  How about:
>>
>>      IETF-specified protocols and media associated with the
>>      application/json media type, MUST encode JSON text using UTF-8
>>      [RFC3629].
> 
> This is not about the IETF.
> 
> If I buy a Mercedes, I want to get a car built by Daimler-Benz.
> If people send me JSON, I want to get JSON (the UTF-8 form that everyone uses).
> 
> Now, there are other areas where, say, Mercedes is a woman’s name.  There might even be a restaurant called “Mercedes’ kitchen".  The objective cannot be that women or their restaurants no longer be called Mercedes (that the use of UTF-16 encoded JSON in C# or JavaScript becomes illegal).  It’s just when you sell a car as a Mercedes (send me an object as JSON), I want to get a Mercedes (JSON).
> 
> Consult a trade mark lawyer if that wasn’t clear :-)

Well I'm familiar with trade mark classes, thank you very much.

So I guess your rambling is trying to say JSON in the IETF class, is not 
the same as JSON in the ETSI class.  ETSI defines JSON at the code point 
level, whereas IETF defines it at the UTF-8 character encoding level.

However, I think your example illustrates that far from having the 
context of UTF-8 implied, we need to be explicit.  While you might be 
expecting a car when you you say "I'll have the Mercedes," if I'm 
starving I might be very disappointed if I say "I'll have the Mercedes" 
and end up with a car instead of a meal.  In the knowledge of such 
potential ambiguity you would be better saying "I'll have the Mercedes 
car," and I'd be better off saying "I'll have the Mercedes meal."

This is especially so as both ETSI JSON and whatever we're calling what 
we're defining here, likely both fall into trade mark Class 9, and hence 
a trade mark lawyer would ban one or the other on the grounds that 
people could get confused by them.

(If we really are saying the context is implicit, then all we need is:

     JSON text MUST be encoded using UTF-8 [RFC3629].
)

Pete Cordell
Codalogic Ltd
C++ tools for C++ programmers, http://codalogic.com
Read & write XML in C++, http://www.xml2cpp.com