Re: [Json] Indentation (was: Re: Change Control)

Carsten Bormann <cabo@tzi.org> Mon, 30 September 2013 12:14 UTC

Return-Path: <cabo@tzi.org>
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 0CC1E21F9C6C for <json@ietfa.amsl.com>; Mon, 30 Sep 2013 05:14:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.037
X-Spam-Level:
X-Spam-Status: No, score=-106.037 tagged_above=-999 required=5 tests=[AWL=-0.088, BAYES_00=-2.599, HELO_EQ_DE=0.35, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oU5ktzvlJiu3 for <json@ietfa.amsl.com>; Mon, 30 Sep 2013 05:14:32 -0700 (PDT)
Received: from informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) by ietfa.amsl.com (Postfix) with ESMTP id AF32A21F85E0 for <json@ietf.org>; Mon, 30 Sep 2013 05:14:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by informatik.uni-bremen.de (8.14.4/8.14.4) with ESMTP id r8UCERJ6012583; Mon, 30 Sep 2013 14:14:27 +0200 (CEST)
Received: from [192.168.217.105] (p54890DAD.dip0.t-ipconnect.de [84.137.13.173]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id 33D0C781; Mon, 30 Sep 2013 14:14:27 +0200 (CEST)
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
Content-Type: text/plain; charset="iso-8859-1"
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <52494553.9020002@it.aoyama.ac.jp>
Date: Mon, 30 Sep 2013 14:14:26 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <C044DBED-0CE4-4873-8FC4-339196EAC284@tzi.org>
References: <BF7E36B9C495A6468E8EC573603ED9411EF1BB0B@xmb-aln-x11.cisco.com> <B2706F01-E791-40AE-AC54-6DC7C3E2A0E3@mnot.net> <1FE58CDF-859A-4FB3-AE13-D72BDAB35D1A@vpnc.org> <bkib49du40467apnfk34cion8qipsgulm4@hive.bjoern.hoehrmann.de> <52494467.2050108@it.aoyama.ac.jp> <52494553.9020002@it.aoyama.ac.jp>
To: "\"Martin J. Dürst\"" <duerst@it.aoyama.ac.jp>
X-Mailer: Apple Mail (2.1510)
Cc: JSON WG <json@ietf.org>
Subject: Re: [Json] Indentation (was: Re: Change Control)
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
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: Mon, 30 Sep 2013 12:14:37 -0000

On Sep 30, 2013, at 11:33, "Martin J. Dürst" <duerst@it.aoyama.ac.jp> wrote:

> Or is the RFC Editor experimenting with new indents?

xml2rfcv2 has changed some of the indentation logic with respect to v1.

In the documents I have been working on, these changes generally were improvements.

Looking at http://www.ietf.org/rfcdiff?url1=rfc4627&url2=draft-ietf-json-rfc4627bis-04, this generally seems to be the case here as well.

There are a couple of lines that would benefit from more indentation; 
from the XML and the xml2rfcv2 code I cannot see why they look the way they do (i.e., these may be bugs in xml2rfcv2; there also is a spurious newline at the end of the one-liners):

  JSON-text = object / array
  ws = *(
  false null true
  array = begin-array [ value *( value-separator value ) ] end-array

Grüße, Carsten