Re: [Json] Human JSON (Hjson)

Carsten Bormann <cabo@tzi.org> Thu, 26 May 2016 15:24 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 D896912D710 for <json@ietfa.amsl.com>; Thu, 26 May 2016 08:24:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.62
X-Spam-Level:
X-Spam-Status: No, score=-2.62 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=unavailable 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 9yKmEnTvXtHg for <json@ietfa.amsl.com>; Thu, 26 May 2016 08:24:35 -0700 (PDT)
Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DF84312D702 for <json@ietf.org>; Thu, 26 May 2016 08:15:27 -0700 (PDT)
Received: from mfilter14-d.gandi.net (mfilter14-d.gandi.net [217.70.178.142]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 78BE8A811C; Thu, 26 May 2016 17:15:26 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at mfilter14-d.gandi.net
Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter14-d.gandi.net (mfilter14-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id D6ssZB9sFX-R; Thu, 26 May 2016 17:15:24 +0200 (CEST)
X-Originating-IP: 93.199.242.26
Received: from nar-3.local (p5DC7F21A.dip0.t-ipconnect.de [93.199.242.26]) (Authenticated sender: cabo@cabo.im) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id F102EA80C2; Thu, 26 May 2016 17:15:23 +0200 (CEST)
Message-ID: <57471309.8040102@tzi.org>
Date: Thu, 26 May 2016 17:15:21 +0200
From: Carsten Bormann <cabo@tzi.org>
User-Agent: Postbox 4.0.8 (Macintosh/20151105)
MIME-Version: 1.0
To: Peter Cordell <petejson@codalogic.com>
References: <9ec25767-7471-2ca3-ded5-afed67863742@gmail.com> <82b2ba3f-a6c2-c98b-b365-b698ab285149@codalogic.com>
In-Reply-To: <82b2ba3f-a6c2-c98b-b365-b698ab285149@codalogic.com>
X-Enigmail-Version: 1.2.3
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/json/2WG-7NDnwMEasz4elV5iXyiP4pk>
Cc: Christian Zangl <coralllama@gmail.com>, json@ietf.org
Subject: Re: [Json] Human JSON (Hjson)
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.17
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: Thu, 26 May 2016 15:24:36 -0000

Peter Cordell wrote:
> For me JSON is too simple, and YAML is too complex.  I've tried to get
> into YAML a couple of times, but it seems to have multiple ways to do
> the same things, so I end up getting confused.  

I think it would be a great academic subject to study *where* people
stumble that try to pick up something like YAML.  Can you relate your
experience in some more detail (off-list if that helps)?

> It clearly fails at at
> least one level to be human friendly.  Why JSON doesn't have comments
> eludes me.  JavaScript does, so missing that bit in the subsetting was a
> big drop off IMO.

JSON was meant as an interchange format between programs, which don't
need comments to talk to each other.  (Also, if you do need to include
commentary material, you way want to process this together with the
other data, so you just add it as fields to your structure, keeping your
data model simple.)
[Just trying to relate the rationale as I have heard it expressed many
times.  Doesn't apply that much to config files, of course.]

Grüße, Carsten