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

Julian Reschke <julian.reschke@gmx.de> Fri, 21 July 2017 04:20 UTC

Return-Path: <julian.reschke@gmx.de>
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 EE7011294A2 for <json@ietfa.amsl.com>; Thu, 20 Jul 2017 21:20:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.619
X-Spam-Level:
X-Spam-Status: No, score=-2.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham 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 n-VHJANblVkR for <json@ietfa.amsl.com>; Thu, 20 Jul 2017 21:20:15 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E4DFD12441E for <json@ietf.org>; Thu, 20 Jul 2017 21:20:14 -0700 (PDT)
Received: from [192.168.178.20] ([93.217.75.144]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LzoSt-1dd4K840P5-0151LL; Fri, 21 Jul 2017 06:20:12 +0200
To: Peter Saint-Andre - Filament <peter@filament.com>, 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>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <f1a6b553-c787-e248-67bd-74d68d98a845@gmx.de>
Date: Fri, 21 Jul 2017 06:20:09 +0200
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: <c06e583a-965e-9eaf-975f-e6876ac056ed@filament.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:5B0uoQzzDhtcvpZiWSTF394JUoOBaH0Sr6RxlK9lTSFuZgTCyve 9sZSKcdi9fTnCrC8Y3z2aqTqfHNt9z2dbETicqZzQxmjqsPwjrn0/Q65cLXF86CeR+qk/Gp VRIWkJBjU84SXHyqHuLMJlEX0rPv2wsVmDCIk5hczJAh9i2gn8eGVg50fRp2HHUOFtptR60 U3G1IKLjjkYc0uiJRWivA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:SKX5XyeaWd0=:jXlTEwLYHfJo5F/G0aoaH4 pXNtkeAGiXmid4dneMoCF3OucqQ/SZQbSM5MFK1Yar+vnC12M+OO7ZH88zXQTKB4PgRGeduxJ 8V5HZJ77JdFBVkcab0MGuxHdzzXrVXKKX2gEAxqoVvRgsJlB9WKNWHPXIRTZDP0z/0z9ok9HD oNqtSx3NsqTYIoAv4H8mr2wc1BGuwX2sVcDYqoz5GopT1DoVlHfhqoH2vw5J+ohcLyn+991nQ oHNYo01D1Yd8BHBAE+8u64S1VRoaFKHeEuQeqtPS/0zVQ34U+0CpO+9weQTYFh0qPpLkQ08JY OZxrdHbFu+Itay4D+OwKvF6r7xZcQ/pGU4MrUZtjU6LPsDox7K9jTEORDcKcqxJsAGEYI6TE5 IjYEk8DTM0P8F4bqJH0UXBhtmVpohxn/bg6GpQT/Xgo63NmEMOGxjtR+qfNgvg7Z0dNi8ps39 gOcAwFQ0RHy218Wh36cdtUWZ7ymCidqplbW9qoP6nzB6KWHOs53ac5P2p1hq59Fp4kL7KZhOd 5PCSnJMPOwimmz6C099XLFfcdTh+KJ9Y7xHnWCfV+nkwhcqgXfjshrq99aPLB37JOI1WIsxio 61Cl89LD9gaaC5ByJGKbnt0yjwJofIq1CpRVa86w2VkYv+jFCoJbGzj8cIrYa+wTZqGe8oFiV oaeqnW+ImdGPisNnKQraXgzq7mMHVMWBpGwOAXsxyufwLq+tP4yJRGcmIb1tykUlnfa6OlAN4 8vqIu+eMJ4n4nn9/yBWPf9NCZNTKBjufgPhCXQ00Qr6Qp1R3dcjkDXoUCtbP884hHHns1rulj h4VImPwGfJFxGPLqX7e82qYdbiIE3+IM/Mo7ULEhsmwapiT5Z0=
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/xF3L_MuUgw88XmI-BGGQmKVgfq4>
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 04:20:17 -0000

On 2017-07-21 03:42, Peter Saint-Andre - Filament wrote:
> I have three comments about this new sentence:
> 
>     When transmitting over a network protocol, or as a payload of a
>     network protocol intended to be interpreted as part of a protocol,
>     JSON text MUST be encoded in UTF-8 (Section 3 of [UNICODE]).
> 
> 1. Is the term "network protocol" sufficiently clear? It might be
> interpreted as a communications protocol at the network layer (e.g.,
> IP), not as an application-layer protocol above the network layer -
> which is where most or all usage of JSON occurs.

No, it's not totally clear, and that's indeed a problem when combined 
with a MUST.

> 2. What are we trying to say with "as a payload of a network protocol
> intended to be interpreted as part of a protocol"?
> 
> 3. Why do we reference Section 3 of the Unicode Standard for the
> definition of UTF-8, not RFC 3629? (Among other things, there's no
> guarantee that Section 3 of http://www.unicode.org/versions/latest/ will
> continue to talk about UTF-8.)

Right.

> I suggest:
> 
>     When an entity transmits JSON text over a network, e.g. as the
>     payload of an application protocol, it MUST encode that text using
>     UTF-8 [RFC3629].

This gets us back to the suggestion to apply this rule to the use of the 
application/json media type (and types derived from it).

Best regards, Julian