Re: [Json] Human JSON (Hjson)

Christian Zangl <coralllama@gmail.com> Fri, 27 May 2016 20:52 UTC

Return-Path: <coralllama@gmail.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 63A4712D73D for <json@ietfa.amsl.com>; Fri, 27 May 2016 13:52:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 YmH_G4dlxaMz for <json@ietfa.amsl.com>; Fri, 27 May 2016 13:52:57 -0700 (PDT)
Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C500812D1AD for <json@ietf.org>; Fri, 27 May 2016 13:52:56 -0700 (PDT)
Received: by mail-wm0-x230.google.com with SMTP id a136so7449724wme.0 for <json@ietf.org>; Fri, 27 May 2016 13:52:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=ywqBJ3bgJHCWFdc2N4tcFUS17dAVYD+3Vqm/OyQe0L8=; b=FTr5BFoZXkg9CqqFIgEmyo9bxPysMIQVa2ooD1K4NlvVWg/iNjYkqZEgT1XWl4+kCv A6DrcJwlokYP8ZyxMPzUKbAPEHfUIBREqdXsOEM05ndkvEk6D2qQxOveDnyP7y8tNMj2 9LcmmoO3g6KmuGWKI+EDjz+0Q+79cDIPEuG92St58kLpOaVhQ0un2QsMbSzQ5P4O5g+g V2/KGyDM0LXQSRVmMgaLTAYoQjEA5skG8IchAaGxj2Zxas68YLqmWrMDm7Ta8VijMcbg 9TkLpFj4PAH4M1WDhPNCBJr7Fn0UHtCAW3adoA7VUUo6oJ3k3fMWzFe7Jnrj3yOklcwl TRPA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ywqBJ3bgJHCWFdc2N4tcFUS17dAVYD+3Vqm/OyQe0L8=; b=kxzUA1DmFTFUo3zTimREWV/Fp/pe+65VLVuewf3vw6pTlYBt2O1FKNiCDIh23NKBM4 QdwKHDKyIuKl1qB0yGuPMkmHhZWGv1E6ytGrRu3jdgtUR4ie5vgT3FnwHWMb0jN9zVCt dTqg5W2AEuItfS6lM3ndL6sfc72DQqB/eQrUonAlI6RNJ+HOErWwQJ31ZR6p/faa/WAB EgP7WhZgkgX15CWlqA8ylz9UgtZdDYrZKq61jaSPxlOzYcSsAWSp8JdlLfAzlkYm9Cdq ixKDVKPH4le8DMqs7kAOPhK9nCCDCAT/NSkd/1itr/Rwm13aNcwACCbal4NKLI34LYKC viUw==
X-Gm-Message-State: ALyK8tL3L53qMDW46+AY1ubudHl97ia0TtUkayY7tqLsx7D9poP7BKxyIKXazpDQNReY1A==
X-Received: by 10.28.54.204 with SMTP id y73mr455928wmh.59.1464382375325; Fri, 27 May 2016 13:52:55 -0700 (PDT)
Received: from [192.168.1.181] (178.112.50.109.wireless.dyn.drei.com. [178.112.50.109]) by smtp.googlemail.com with ESMTPSA id az2sm21110761wjc.6.2016.05.27.13.52.53 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 May 2016 13:52:54 -0700 (PDT)
To: Peter Cordell <petejson@codalogic.com>, Carsten Bormann <cabo@tzi.org>
References: <9ec25767-7471-2ca3-ded5-afed67863742@gmail.com> <82b2ba3f-a6c2-c98b-b365-b698ab285149@codalogic.com> <CAMm+Lwjw-FgrH1yED5B98=3vsx_KjX_VANn=7efPVoD_yPcC1w@mail.gmail.com> <3902e167-6a07-9311-4569-484f015f08be@gmail.com> <CAMm+Lwhh=h0DfWR4LFPgKVLpz-vg8RvFDLfm5DCUxv5tdC-=_g@mail.gmail.com> <2a9060c3-7f2a-6675-2eba-9a14dc823138@gmail.com> <57482236.2030402@tzi.org> <620cd39b-1648-1b8f-57f4-c58678ff1ede@codalogic.com>
From: Christian Zangl <coralllama@gmail.com>
Message-ID: <d2f14243-c82d-1be5-672c-340555c37c75@gmail.com>
Date: Fri, 27 May 2016 22:52:52 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
MIME-Version: 1.0
In-Reply-To: <620cd39b-1648-1b8f-57f4-c58678ff1ede@codalogic.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/json/0gyMsNBth0mc1FUMC3fpH8IV5eE>
Cc: 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: Fri, 27 May 2016 20:52:58 -0000

On 2016-05-27 13:06, Peter Cordell wrote:
> On 27/05/2016 11:32, Carsten Bormann wrote:
>>>> I don't like quoteless strings with spaces. I think they are going to
>>>> cause serious problems.
>>>
>>> Please explain.
>>
>> They sure work very well in YAML.
>> But the rules for what you can and cannot do there are sometimes
>> perceived as complicated (why do you need quotes here? Oh, the colon.):
>>
>>     title: "6LoWPAN: the Wireless Embedded Internet"
>>
>
> And the '6' would prevent you using unquoted strings in HJSON.  That
> seems a bit error prone and worries me.

That's not correct. The following is a valid unquoted string:

title: 6LoWPAN: the Wireless Embedded Internet

In fact you can just paste this line into http://hjson.org/try.html