From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
2. Order of key-value pairs is not explicitly preserved in either the
reader or the serializer, and if there are duplicate keys, either the
first or the last wins depending on a number of factors. While json
objects are technically defined to be unordered (and therefore
json.el's current behavior is conforming), the standard JS
implementation preserves order and a convention has developed whereby
duplicate keys are used to provide "comments", e.g.
{
=C2=A0 "foo": "the foo property is used for blah blah blah.&= quot;,
=C2=A0 "foo": 4
}
Last key should always win when reading, and order needs to be
preserved when serializing so that these "comments" can be genera= ted.
This is a fairly serious interoperability issue.