[Json] EcmaScript V6 - Defined Property Order

Anders Rundgren <anders.rundgren.net@gmail.com> Sun, 25 October 2015 09:08 UTC

Return-Path: <anders.rundgren.net@gmail.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 0B95A1B2CBB; Sun, 25 Oct 2015 02:08:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 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, SPF_PASS=-0.001] 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 xkXsAFOYnW21; Sun, 25 Oct 2015 02:08:51 -0700 (PDT)
Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (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 99B811B2CBA; Sun, 25 Oct 2015 02:08:51 -0700 (PDT)
Received: by wikq8 with SMTP id q8so126739125wik.1; Sun, 25 Oct 2015 02:08:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=xaZAXxDFfMuF0ZaUmsGPssMJ8RBGY1qyCEGs6xMqVvI=; b=hZWIstj+oBTHI1zWtA7uUYxPT2zs4SlornkPEGX0gym4qj6uoYCAt6KnouE7on68Fm 0QXHznTn4Ex37zt+MWLCmy4NapHAbTgIbVi7OFbPmeHnWjZSahyDLePFCZmBQEykMdBP /p0M4kbNskXyB+sKVejbbJ+1sr4qsOzUUKODMviMGCfybmGkVp+T3L3Zuy1BxAQ8vSwr 4i0Q8G1TrCD4lkAUfNoz2MDNo2NEHkxNF/47+0I4lywfseRJuClsH8mcFVE+w/YEdeO6 KFofa39Z9Nn75+WwhunXKtcgr366K/0SqKkzN5rVrQxmwJnv0DbgQnTlk1w9bGnSN7qs xj3w==
X-Received: by 10.194.89.40 with SMTP id bl8mr7861071wjb.107.1445764130190; Sun, 25 Oct 2015 02:08:50 -0700 (PDT)
Received: from [192.168.1.79] (148.198.130.77.rev.sfr.net. [77.130.198.148]) by smtp.googlemail.com with ESMTPSA id gd11sm9496699wic.20.2015.10.25.02.08.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Oct 2015 02:08:49 -0700 (PDT)
To: "jose@ietf.org" <jose@ietf.org>, "json@ietf.org" <json@ietf.org>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Message-ID: <562C9C1F.6020507@gmail.com>
Date: Sun, 25 Oct 2015 10:08:47 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/json/ftOwvW__AE6GGMW1le-iMWDFJf8>
Subject: [Json] EcmaScript V6 - Defined Property Order
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: <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: Sun, 25 Oct 2015 09:08:53 -0000

http://www.ecma-international.org/ecma-262/6.0/index.html#sec-ordinary-object-internal-methods-and-internal-slots-ownpropertykeys

I can't say I'm able "deciphering" the ES6 specification but it seems that the largest base of JSON parsers (the browsers), now are compliant with in-object JSON clear-text signature schemes of the kind I have proposed (pushing maybe...), albeit with some (IMO for practical purposes insignificant) limitations:

- Integer property names doesn't work.
- Numeric values would have to be normalized.

Java, Python, and C# already manages this as well.

Yay!

Anders