Re: [Gen-art] [Json] Gen-ART and OPS-Dir review of draft-ietf-json-text-sequence-09

John Cowan <cowan@mercury.ccil.org> Tue, 09 December 2014 04:20 UTC

Return-Path: <cowan@ccil.org>
X-Original-To: gen-art@ietfa.amsl.com
Delivered-To: gen-art@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B2CC41A0072; Mon, 8 Dec 2014 20:20:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.311
X-Spam-Level:
X-Spam-Status: No, score=-2.311 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 67xRY35DK-PE; Mon, 8 Dec 2014 20:20:38 -0800 (PST)
Received: from earth.ccil.org (earth.ccil.org [192.190.237.11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 85F1B1A020A; Mon, 8 Dec 2014 20:20:30 -0800 (PST)
Received: from cowan by earth.ccil.org with local (Exim 4.72) (envelope-from <cowan@ccil.org>) id 1XyCHh-0007vT-98; Mon, 08 Dec 2014 23:20:25 -0500
Date: Mon, 08 Dec 2014 23:20:25 -0500
From: John Cowan <cowan@mercury.ccil.org>
To: Patrik Fältström <paf@frobbit.se>
Message-ID: <20141209042024.GC4701@mercury.ccil.org>
References: <CE03DB3D7B45C245BCA0D24327794936289DC7@MX104CL02.corp.emc.com> <89601952-AA04-44EE-A6DA-E76D0AB07C21@frobbit.se> <20141207180528.GA1116@mercury.ccil.org> <D4E95FE1-0C25-4541-8327-16313175F13A@frobbit.se> <20141207210754.GA18507@mercury.ccil.org> <743CABB8-9BDB-4144-BD96-2D3A79BF0450@frobbit.se>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <743CABB8-9BDB-4144-BD96-2D3A79BF0450@frobbit.se>
User-Agent: Mutt/1.5.20 (2009-06-14)
Sender: John Cowan <cowan@ccil.org>
Archived-At: http://mailarchive.ietf.org/arch/msg/gen-art/93u_UgnP9rS2ohQVX8QZZy3rp5U
Cc: "ops-dir@ietf.org" <ops-dir@ietf.org>, "ietf@ietf.org" <ietf@ietf.org>, "json@ietf.org" <json@ietf.org>, Nico Williams <nico@cryptonector.com>, "General Area Review Team (gen-art@ietf.org)" <gen-art@ietf.org>
Subject: Re: [Gen-art] [Json] Gen-ART and OPS-Dir review of draft-ietf-json-text-sequence-09
X-BeenThere: gen-art@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "GEN-ART: General Area Review Team" <gen-art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/gen-art>, <mailto:gen-art-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/gen-art/>
List-Post: <mailto:gen-art@ietf.org>
List-Help: <mailto:gen-art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/gen-art>, <mailto:gen-art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Dec 2014 04:20:42 -0000

Patrik Fältström scripsit:

> This implies the whole thing is a UTF-8 encoded text that is to be
> parsed like this:

No, this is a misunderstanding.  There is no requirement that the sequence
*as a whole* is well-formed UTF-8 text.  For example, if the first JSON
text is written only in part for whatever reason (system crash, etc.) to
a log file, the next process can write a 0x1E byte and carry on.

> I.e. the blob, to be compliant with this document, MUST be UTF-8 encoded JSON.

The possible-JSON part is either UTF-8 encoded JSON or it's arbitrary junk.

-- 
John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
Said Agatha Christie / To E. Philips Oppenheim
"Who is this Hemingway? / Who is this Proust?
Who is this Vladimir / Whatchamacallum,
This neopostrealist / Rabble?" she groused.
        --George Starbuck, Pith and Vinegar