From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: two json.el bugs Date: Sun, 28 May 2017 18:47:27 +0000 Message-ID: References: <16aabb87-3130-41b8-968e-52bc5aea3956@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113ad7b82030d705509a01f6" X-Trace: blaine.gmane.org 1495997264 1307 195.159.176.226 (28 May 2017 18:47:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 May 2017 18:47:44 +0000 (UTC) To: Drew Adams , "Theresa O'Connor" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 28 20:47:40 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 1dF3E3-0000E5-OG for ged-emacs-devel@m.gmane.org; Sun, 28 May 2017 20:47:39 +0200 Original-Received: from localhost ([::1]:44955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dF3E9-0001yX-An for ged-emacs-devel@m.gmane.org; Sun, 28 May 2017 14:47:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dF3E3-0001yP-JX for emacs-devel@gnu.org; Sun, 28 May 2017 14:47:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dF3E2-0002KQ-L6 for emacs-devel@gnu.org; Sun, 28 May 2017 14:47:39 -0400 Original-Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:34598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dF3E2-0002JM-GH for emacs-devel@gnu.org; Sun, 28 May 2017 14:47:38 -0400 Original-Received: by mail-oi0-x22e.google.com with SMTP id b204so58999245oii.1 for ; Sun, 28 May 2017 11:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=clQ6LX3HHcEu2CT1lN9jmmhp1GovrJss9IJoMSS11lA=; b=MBoJj6bGKS0+S2GYTrjtTTj2f4jLw9Cqfe6I1/+7lyoN4jwG/vtWCGDVfHyzenI2/c sTH2CJyA9iESO1RtDj1rdXkNXiyEJrAcC10a6WZObNf8pGi8wD6Zwz78BQQCOarMWtUV +vmtvi8ORBeGiTfFth7qaykOiYeGfDFrRPTsA1jQs0GM+RJdNJhiJxsTYUCjfrzjsnXA Fdmy2nbJ1qVuINfuyuSnvfJKYXC6rxVi9e99+tYYsqDGYwQHtSnFejVG0ftdZ4DEcjza /cRTStOFZuS/gp0wlwl2wtIbFJfHpaFrjkTPmUK44+01C4EapQ6CwfNITOnbhRjErvR0 xTrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=clQ6LX3HHcEu2CT1lN9jmmhp1GovrJss9IJoMSS11lA=; b=J1iFxuold99MwOMZyKx5hjrTYbb8vxNjBenfyzFI2wGjmh0OiZil/fxepuQliWuBgQ bo4zRpjlArGWAX8i2w4XBoEm0YxYmksu/WsM3PHSgHQQhbQenWM9TQrjXG1dqWIaavBf tzqOYsEbdn0U+5KMy0nxK+3KpzZiGZTuNk34AnQ9FQ2W3jdw1aXgAg2PxE0CAuAYs02j 8Q8U3wKlPT6Ck+acQwp7rh9zR3AGg+bIfWVm3L8k0HB5dR+DpoZuVBqbu1r7ub2yyvN/ NB37k6K8fmiDs4ES2K72wbbvOjJxe4RD/6yl7uam+xMVPP5115oa6ZOohgWRIFfkvwXK OEKQ== X-Gm-Message-State: AODbwcD2SWic/YBeS8PZje6ycecUc/sPPe3M+UJZYpWZzPsOZVKRMyvv HVocH1+HmLDgp19Exs+uUElvyZdRzQ== X-Received: by 10.202.87.76 with SMTP id l73mr4626135oib.191.1495997257624; Sun, 28 May 2017 11:47:37 -0700 (PDT) In-Reply-To: <16aabb87-3130-41b8-968e-52bc5aea3956@default> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22e 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:215290 Archived-At: --001a113ad7b82030d705509a01f6 Content-Type: text/plain; charset="UTF-8" Drew Adams schrieb am So., 28. Mai 2017 um 03:30 Uhr: > > 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. > Please see Theresa's initial post why this matters. --001a113ad7b82030d705509a01f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Drew A= dams <drew.adams@oracle.com= > schrieb am So., 28. Mai 2017 um 03:30=C2=A0Uhr:
> 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.)
=C2=A0 ^^^^^^^^^^^^^^^^^^^^^^^^^

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.=C2=A0 And it is free to act otherwise.

Please see Theresa's initial post why this matters.=C2= =A0
--001a113ad7b82030d705509a01f6--