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

Pete Cordell <petejson@codalogic.com> Tue, 01 August 2017 16:28 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 2D5CD131DF7 for <json@ietfa.amsl.com>; Tue, 1 Aug 2017 09:28:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.92
X-Spam-Level:
X-Spam-Status: No, score=-0.92 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-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 zUsbjED8xW8j for <json@ietfa.amsl.com>; Tue, 1 Aug 2017 09:28:45 -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 0324B131C28 for <json@ietf.org>; Tue, 1 Aug 2017 09:28:44 -0700 (PDT)
Received: (qmail 18543 invoked from network); 1 Aug 2017 17:20:21 +0100
Received: from host109-157-169-220.range109-157.btcentralplus.com (HELO ?192.168.1.72?) (109.157.169.220) by lvps217-199-162-217.vps.webfusion.co.uk with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 1 Aug 2017 17:20:21 +0100
To: Peter Saint-Andre - Filament <peter@filament.com>, Anders Rundgren <anders.rundgren.net@gmail.com>
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> <166957c4-26fc-90b5-a798-59280c91b466@filament.com> <8B60039F-96DD-4F72-8139-D80B6F11566C@tzi.org> <3760a157-5b88-e334-712c-03eecd675794@codalogic.com> <7a88952c-3e46-3f87-b3c2-2864f216c62d@gmail.com> <9cddf2e7-f987-3942-3580-05c3da6a4805@codalogic.com> <2892a0eb-0bd2-cd2e-87e7-aa2e29009b4b@filament.com>
From: Pete Cordell <petejson@codalogic.com>
Message-ID: <62d58ceb-282d-329d-3f27-8ed5ef268d13@codalogic.com>
Date: Tue, 01 Aug 2017 17:28:40 +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: <2892a0eb-0bd2-cd2e-87e7-aa2e29009b4b@filament.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/BhRFR8U2u8TFmMFc486PU56-SDI>
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: Tue, 01 Aug 2017 16:28:47 -0000

On 01/08/2017 17:01, Peter Saint-Andre - Filament wrote:
> 
> We're not writing a novel here. :-)

I had been thinking that too.  I do like the direction of focussing the 
requirement on open systems communication though (not to be confused 
with systems built on open software!).  I think the following is pretty 
simple and side-steps issues about what is a network protocol, payload, 
serialization etc.:

8.1.  Character Encoding

    JSON text exchanged between systems that are not part of a closed
    ecosystem MUST be encoded using UTF-8.

    Previous specifications of JSON have not required the use of UTF-8
    when transmitting JSON text.  However, the vast majority of JSON-
    based software implementations have chosen to use the UTF-8 encoding,
    to the extent that it is the only encoding that achieves
    interoperability.

    Implementations MUST NOT add a byte order mark (U+FEFF) to the
    beginning of a networked-transmitted JSON text.  In the interests of
    interoperability, implementations that parse JSON texts MAY ignore
    the presence of a byte order mark rather than treating it as an
    error.


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