Re: [Json] The text in draft-ietf-json-text-sequence

Nico Williams <nico@cryptonector.com> Tue, 15 July 2014 23:13 UTC

Return-Path: <nico@cryptonector.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BC6CF1B29BC for <json@ietfa.amsl.com>; Tue, 15 Jul 2014 16:13:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.666
X-Spam-Level:
X-Spam-Status: No, score=-1.666 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=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 2mhMs03mYwD6 for <json@ietfa.amsl.com>; Tue, 15 Jul 2014 16:13:11 -0700 (PDT)
Received: from homiemail-a85.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 9F1561B29B8 for <json@ietf.org>; Tue, 15 Jul 2014 16:13:11 -0700 (PDT)
Received: from homiemail-a85.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a85.g.dreamhost.com (Postfix) with ESMTP id 55765BBA063; Tue, 15 Jul 2014 16:13:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=EoQ+dFPIN0kJ+0 cgSzgRGjbeA18=; b=q0yv3X7xdRb6er8MzCHyiwnQB0P/rOyAzyXKrbmuG6Vewn R8+rmsmJudZrjpnw2EcMhQmg34XMWknTgy/+0EB4kHszp9SWRAFDKxn7ifNiULaj bg3tbc15Ps71NNfAYlwzRmyxl+uLfzRxzA+m6LtJ3IGzotMQ4p7BwjIdZSYpE=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a85.g.dreamhost.com (Postfix) with ESMTPA id C68CEBBA05F; Tue, 15 Jul 2014 16:13:10 -0700 (PDT)
Date: Tue, 15 Jul 2014 18:13:10 -0500
From: Nico Williams <nico@cryptonector.com>
To: John Cowan <cowan@mercury.ccil.org>
Message-ID: <20140715231308.GA3896@localhost>
References: <FD9026FF-BDC5-451C-ABBC-0608AB63B819@vpnc.org> <CFE1A78C.52DE5%jhildebr@cisco.com> <20140715063853.GE2256@localhost> <20140715070614.GH10065@mercury.ccil.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <20140715070614.GH10065@mercury.ccil.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: http://mailarchive.ietf.org/arch/msg/json/OdOTS381GZ-zKIJodukkgIfurgw
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>, IETF JSON WG <json@ietf.org>
Subject: Re: [Json] The text in draft-ietf-json-text-sequence
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
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: Tue, 15 Jul 2014 23:13:13 -0000

On Tue, Jul 15, 2014 at 03:06:14AM -0400, John Cowan wrote:
> Nico Williams scripsit:
> 
> > and considering that if we used RS a logger would still have to check
> > that a text to be logged does not include RS,...
> 
> How so?  JSON cannot contain unescaped RS; an RS in a string must
> appear as \u001F.

But if a logger is just logging a string purported to be a JSON text,
then it has to validate.  OTOH, if the logger is logging a JSON _value_
then it can trivially encode with no newlines (or remove/map them).