From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: two json.el bugs Date: Sat, 27 May 2017 18:30:46 -0700 (PDT) Message-ID: <16aabb87-3130-41b8-968e-52bc5aea3956@default> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1495935101 14367 195.159.176.226 (28 May 2017 01:31:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 May 2017 01:31:41 +0000 (UTC) To: Philipp Stephani , "Theresa O'Connor" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 28 03:31:35 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEn3M-0003Wx-O0 for ged-emacs-devel@m.gmane.org; Sun, 28 May 2017 03:31:32 +0200 Original-Received: from localhost ([::1]:42434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEn3R-000693-Tz for ged-emacs-devel@m.gmane.org; Sat, 27 May 2017 21:31:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEn2q-00068v-4W for emacs-devel@gnu.org; Sat, 27 May 2017 21:31:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEn2m-0001cU-Ra for emacs-devel@gnu.org; Sat, 27 May 2017 21:31:00 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:35513) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dEn2m-0001cN-FK for emacs-devel@gnu.org; Sat, 27 May 2017 21:30:56 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v4S1Upux003521 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 28 May 2017 01:30:51 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v4S1UoUV016421 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 28 May 2017 01:30:51 GMT Original-Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id v4S1Ul8W001201; Sun, 28 May 2017 01:30:48 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6767.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215271 Archived-At: > We can't simply serialize/desterialize alists in key order > because the order is reversed in Emacs. (In Emacs alists, > if there are duplicates, the first one wins, > in JSON the last one wins.) ^^^^^^^^^^^^^^^^^^^^^^^^^ If you're talking about JSON objects then no, no particular meaning or behavior is defined for duplicate fields (keys) in a JSON object. A given application that handles JSON object is free to act as you say. And it is free to act otherwise.