From unknown Tue Jun 17 22:22:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42545: 28.0.50; json-pretty-print cant't handle json having "t" as a key Resent-From: Marcelo =?UTF-8?Q?Mu=C3=B1oz?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Jul 2020 08:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42545 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42545@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159575130711533 (code B ref -1); Sun, 26 Jul 2020 08:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Jul 2020 08:15:07 +0000 Received: from localhost ([127.0.0.1]:51668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzboH-0002zs-4y for submit@debbugs.gnu.org; Sun, 26 Jul 2020 04:15:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:56604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzZuc-0000Ad-98 for submit@debbugs.gnu.org; Sun, 26 Jul 2020 02:13:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzZuc-00063E-1P for bug-gnu-emacs@gnu.org; Sun, 26 Jul 2020 02:13:30 -0400 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]:43500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzZua-0007KQ-FV for bug-gnu-emacs@gnu.org; Sun, 26 Jul 2020 02:13:29 -0400 Received: by mail-io1-xd36.google.com with SMTP id k23so13763907iom.10 for ; Sat, 25 Jul 2020 23:13:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=qTIL3ASq+rlTtqjbtPifnajYOc1gsNvoX0v54/+GgME=; b=chmjIpNIoPVwWH5QFTHPQbwfrnwkzzrxueCRusy5m7K9RbpOih2IytMzcIog0rZP9I nE1QATw1K6uzOHsw8JKmvDyyRYh4JQOGLFxoZZrlzVFPl2Zz4pvcqY1K1AnY381tjjTO XoY0uuJ53z8c1C6cBnG+SgkSr0g1VzZU/6rMwAcnRHhsQoffCKBiek6tV07wbWR1wBhT eozbr09oLnS+bs5dFjKqB3l5nCVVxnv1TiYIC5EwgnnPhnPO7ZGIDgUQD0+0BKf+rhUY H4n5EKWL5mbzcj4P16ROnCADleNAmrt2KiQecWOoum3JJ/wLnf8WYr0u1SDGiE31F8w/ x6hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qTIL3ASq+rlTtqjbtPifnajYOc1gsNvoX0v54/+GgME=; b=FY7bQ8w+HiYj3USY46INj/LE9qjL7o9Ul1kYltRu95wYf8/LRAZatfb+wESo2knyKo Er0IG/WuM00KxFKivTxaA7/yHgZyLrZJnoId0QJCgPALdl9tKQcrxBaeB2h1Gy371o1b TOJF+4W9UKQ72tMF6O8+gfm+kjLwh9nM/ZVvhgxOmXaBml6eWP8KDR+bF1oXgiIf4aBz GQze8p377jppdBFY36kK9tD8ScDnix+hi5fCS0AD86248cu9B8zV3Ap1gD11vUETJoh+ ehnQ3zRZPtAthhEvXE9IDZPslW1rk22l9qjwAdGpet9QCRWXDZ/HoTe95Aee4xR8mumW dLDQ== X-Gm-Message-State: AOAM531ilJlVGZg1nUA1Cq9wTkDpqkLeE4WZzR0bDdDYp3MIGeUkn3NE SzACuKsugDapLKr2X0gkX1Wouft0LD6d8HIberMK4KjkMT8= X-Google-Smtp-Source: ABdhPJzXQvRQlty9K+3gcRL1HtEgLXGCStbaieTja+guNOrvDNxo+RaHFXRVzBgS46mrCuiju3LcVYTWI2IzPZMpx74= X-Received: by 2002:a05:6602:2e95:: with SMTP id m21mr18299240iow.165.1595744005347; Sat, 25 Jul 2020 23:13:25 -0700 (PDT) MIME-Version: 1.0 From: Marcelo =?UTF-8?Q?Mu=C3=B1oz?= Date: Sun, 26 Jul 2020 02:13:09 -0400 Message-ID: Content-Type: multipart/alternative; boundary="00000000000097656505ab521a81" Received-SPF: pass client-ip=2607:f8b0:4864:20::d36; envelope-from=ma.munoz.araya@gmail.com; helo=mail-io1-xd36.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.5 (/) X-Mailman-Approved-At: Sun, 26 Jul 2020 04:15:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --00000000000097656505ab521a81 Content-Type: text/plain; charset="UTF-8" Try to apply json-pretty-print to follow json: {"t": 1, "key":2} fail with the message: json-pretty-print: Bad JSON object key: t Some research point me the problem is in the function json-encode-key, its implementation is: (defun json-encode-key (object) "Return a JSON representation of OBJECT. If the resulting JSON object isn't a valid JSON object key, this signals `json-key-format'." (let ((encoded (json-encode object))) (unless (stringp (json-read-from-string encoded)) (signal 'json-key-format (list object))) encoded)) The follow change seems to solve the problem, but I haven't had time understand it in depth: (defun json-encode-key (object) "Return s string representation of a key" (json-encode-string (symbol-name object))) --00000000000097656505ab521a81 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Try to apply json-pretty-print to follow json:

{&qu= ot;t": 1, "key":2}

fail with the message:=C2=A0 json-= pretty-print: Bad JSON object key: t

Some research point me the prob= lem is in the function json-encode-key,
its =C2=A0implementation is:
=
(defun json-encode-key (object)
=C2=A0 "Return a JSON represent= ation of OBJECT.
If the resulting JSON object isn't a valid JSON obj= ect key,
this signals `json-key-format'."
=C2=A0 (let ((enco= ded (json-encode object)))
=C2=A0 =C2=A0 (unless (stringp (json-read-fro= m-string encoded))
=C2=A0 =C2=A0 =C2=A0 (signal 'json-key-format (li= st object)))
=C2=A0 =C2=A0 encoded))


The follow change seems = to =C2=A0solve the problem, but I haven't had time
understand it in = depth:

(defun json-encode-key (object)
=C2=A0 =C2=A0"Return = s string representation of a key"
=C2=A0 =C2=A0(json-encode-st= ring (symbol-name object)))


--00000000000097656505ab521a81-- From unknown Tue Jun 17 22:22:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42545: 28.0.50; json-pretty-print cant't handle json having "t" as a key Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Jul 2020 10:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42545 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Marcelo =?UTF-8?Q?Mu=C3=B1oz?= Cc: 42545@debbugs.gnu.org Received: via spool by 42545-submit@debbugs.gnu.org id=B42545.159575995125242 (code B ref 42545); Sun, 26 Jul 2020 10:40:01 +0000 Received: (at 42545) by debbugs.gnu.org; 26 Jul 2020 10:39:11 +0000 Received: from localhost ([127.0.0.1]:51839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jze3j-0006Z2-Av for submit@debbugs.gnu.org; Sun, 26 Jul 2020 06:39:11 -0400 Received: from mail-wm1-f47.google.com ([209.85.128.47]:37914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jze3g-0006Yj-N8 for 42545@debbugs.gnu.org; Sun, 26 Jul 2020 06:39:09 -0400 Received: by mail-wm1-f47.google.com with SMTP id f18so11985537wml.3 for <42545@debbugs.gnu.org>; Sun, 26 Jul 2020 03:39:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Jw4Ht0iGbrqAI0G9+Q8ImNeDLhZWSbO7Q82J9EBMubA=; b=V1dd8mu/pTvR/EnvSyNcSp3MVyfGQfwuyi751TLeUNkarZ0c6YGSHDSLpXwYtasxu+ sBJn78mskU/G552mXOYoTAISFKi14gqNLwfWcRl3gIOiYZ/n6rQ2QeC8U5XG7Kdovj7e bvQR2x8vygqRAqrgFymgcp2BA2InhjgXrRHSvNNHC3uYIVbz5h/lg2ZAKQkl84pGb9Ik DJimEHDPWQeDd7T9OGR/R30VTqknOAPh3Iwgj3U4wFpx2X33nvhYHAbvnu1NXpOvzXDB AACbv/9DkecfyBPM3tIrG5kMizqaClZBgYw8n9cRmkeBiwngqoUI5S8wFL/Tmy27WFfl f6EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Jw4Ht0iGbrqAI0G9+Q8ImNeDLhZWSbO7Q82J9EBMubA=; b=gV3L1KcpMKckrZ2YMGHMRbQ3ismT1fr007x6TLwkeKJGjqpA9c/zbzb+/bJRjk2PTV jgKxU5TQLWo6tpPU3y97f7aTB7ZPZO/sU36ihw0yO95cKecMQCEu1OIS+zl/62qdZ/dY rh+IdCAOh+vomhChxakR/GBZJgaSH5UDGdzl/pAD+IfAxx3P0GFUYq9xpe3dxw9mQB6r DFD/Lve6C7HVVt7Zw+jsuIw4LEnZgy3IqP97H91swFino0Zoe2Qka7bld7OVt0FN/Fbx lau0cY8GCZ+CnKt/ZtU6s75NX5F+pXjQVwzHnu+NJQVaaA8VP72LuVhlrx1We7TIAOH0 w0OQ== X-Gm-Message-State: AOAM533IdGackUKynv99caKH6gEos4KL6iP0CtYosq+FxsctxjLWmhZS DIMSVbR6x7BbUturJzVUoeNPKg== X-Google-Smtp-Source: ABdhPJx5XPxMmwq+gb88urrLGSvPXUB9NfA+q/wGNRRaSGeX0mHzYWduTPxPQRbfO4MFFjVuhuC1Qg== X-Received: by 2002:a1c:2d91:: with SMTP id t139mr15814682wmt.3.1595759942801; Sun, 26 Jul 2020 03:39:02 -0700 (PDT) Received: from localhost ([80.233.33.180]) by smtp.gmail.com with ESMTPSA id j5sm4833760wmb.12.2020.07.26.03.39.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jul 2020 03:39:02 -0700 (PDT) From: "Basil L. Contovounesios" References: Date: Sun, 26 Jul 2020 13:38:59 +0300 In-Reply-To: ("Marcelo =?UTF-8?Q?Mu=C3=B1oz?="'s message of "Sun, 26 Jul 2020 02:13:09 -0400") Message-ID: <87d04imugs.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) retitle 42545 json-encode-key can't handle boolean values found 42545 24.5 quit Marcelo Mu=C3=B1oz writes: > Try to apply json-pretty-print to follow json: > > {"t": 1, "key":2} > > fail with the message: json-pretty-print: Bad JSON object key: t Here are some simpler repros: (json-encode '((nil . 0))) (json-encode '((t . 0))) (json-encode-key nil) (json-encode-key t) All of these fail with json-key-format since at least as far back as Emacs 24.5. > Some research point me the problem is in the function json-encode-key, > its implementation is: > > (defun json-encode-key (object) > "Return a JSON representation of OBJECT. > If the resulting JSON object isn't a valid JSON object key, > this signals `json-key-format'." > (let ((encoded (json-encode object))) > (unless (stringp (json-read-from-string encoded)) > (signal 'json-key-format (list object))) > encoded)) > > The follow change seems to solve the problem, but I haven't had time > understand it in depth: > > (defun json-encode-key (object) > "Return s string representation of a key" > (json-encode-string (symbol-name object))) This can't be TRT, because OBJECT is not always a symbol. See also https://debbugs.gnu.org/24252#26 for some precedent in rewriting json-encode-key without relying on json-encode. I'm AFK until start of August, but I'll try to have a better look at this when I get the chance if no-one beats me to it. Thanks, --=20 Basil From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 05 11:17:44 2020 Received: (at control) by debbugs.gnu.org; 5 Dec 2020 16:17:44 +0000 Received: from localhost ([127.0.0.1]:48079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klaFk-0003oI-1D for submit@debbugs.gnu.org; Sat, 05 Dec 2020 11:17:44 -0500 Received: from mail-wr1-f52.google.com ([209.85.221.52]:38431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klaFg-0003nt-5n for control@debbugs.gnu.org; Sat, 05 Dec 2020 11:17:42 -0500 Received: by mail-wr1-f52.google.com with SMTP id p8so8336780wrx.5 for ; Sat, 05 Dec 2020 08:17:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=v5PadVGN3kf6LxXs8yA3umyZUpU7++YwCHsVDylP4YA=; b=z8tnerxxu4//wqFly9zweg/mYj9mPcX1DVf63cukB2WvQrdTSHo59XKsm1kLaqDzFy FQfrIa1aTqzgrtbgQpxIP+KsXhdL/1aXG3ld95W6+kpw6FRs/UgcrJrTP9E0T3j3iy3G B3G1vZsp8EROQy+70IJreSksnABjsy3p6rEKmUe3whl8HOWI3IWgSOy91WtHhIgUwSbm +FH7fdSFz+h/OSytebUCPyz4p/PQ3FNC/WIfEbYFYNNtGgt54qL5xbFKn6ZOVZ2bAUb8 ky/rjjT1iY5fD3IJeaAtxYBXOM+PNZU9keH+hbiOTNpFT3pcPCZLdai10acJzUxQ9wcC q1ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=v5PadVGN3kf6LxXs8yA3umyZUpU7++YwCHsVDylP4YA=; b=OJ8GhJFb5FsYLalzLoMbmMSzwRtRch3VTBsVsqs0apUZVVbkwlLCaLI0anKAs75oWg 21Wzvq6ok21ZG15/HpjEZdloFyn6FTGc/xKm7pC/JebfjOTvTZInkr5Id7IHXDRk0eBF tRRTBW40xhkoSHcRjorulV+yqI/F0wNTrYRZrkjbLch1tMVafNHqs25N9+G2OfkZEcKP /iPAcn6q5hB/lik3F+BhwgG3AHVtYQ/G8QiEEIP0zGrUBWPY5gLUJ5OtCM4TdUB+4t2J FjYJaRy6jRnYDv0Efdc02Dzr16GgYuI8KWDRFsqfK4bxcqdWKfKdMGapSeZ/rQ6+0+ST uIdA== X-Gm-Message-State: AOAM533Qi7AnXGDboBk+SfAdX7RyIjTcSn6ixhJAGz5Gq7D4F7PHDV7Y BCfAn+0A3tZYTCd7gDTI3hEmMA== X-Google-Smtp-Source: ABdhPJzTYr6/Wg20+mOAOlgrsRKE49dQLzwcukoXaVBOYrWXi6LbIpTDBzum6LFS8EdwsC5Bf4DsoA== X-Received: by 2002:adf:e5cb:: with SMTP id a11mr11029183wrn.15.1607185054485; Sat, 05 Dec 2020 08:17:34 -0800 (PST) Received: from localhost ([51.37.47.98]) by smtp.gmail.com with ESMTPSA id f23sm7142693wmb.43.2020.12.05.08.17.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2020 08:17:33 -0800 (PST) From: "Basil L. Contovounesios" To: Lars Ingebrigtsen Subject: Re: bug#45032: 26.3; json-pretty-print of JSON with dict containing 't' as a key causes error References: <877dpxnah5.fsf@gnus.org> Date: Sat, 05 Dec 2020 16:17:32 +0000 In-Reply-To: <877dpxnah5.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 04 Dec 2020 11:15:18 +0100") Message-ID: <87a6us1b37.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: Henry Minsky , 45032@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 42545 45032 quit Lars Ingebrigtsen writes: > So I don't know how to fix this. We could add another kludge -- saying > that a boolean used as an object key "obviously" should be a string > instead (when converting back to JSON)? Opinions? This is a duplicate of https://debbugs.gnu.org/42545. I think it's important that native and Elisp JSON serialisation are as consistent as possible here; please comment on my thoughts at: https://lists.gnu.org/r/emacs-devel/2020-07/msg00708.html I might actually have some time to look at this soon. -- Basil From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 29 11:45:41 2021 Received: (at control) by debbugs.gnu.org; 29 Jan 2021 16:45:41 +0000 Received: from localhost ([127.0.0.1]:52855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Wtx-0000uW-KX for submit@debbugs.gnu.org; Fri, 29 Jan 2021 11:45:41 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:40296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Wtu-0000uF-50 for control@debbugs.gnu.org; Fri, 29 Jan 2021 11:45:40 -0500 Received: by mail-wm1-f52.google.com with SMTP id c127so7675741wmf.5 for ; Fri, 29 Jan 2021 08:45:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=nET3FNDhKd11j79HL1cMUI6pnMesFr1DOO6ipB+4leA=; b=zPtpfC6URZ4UlmmS16DZRZtKIIw/N+fEWKpJmX0XY41oNi+BMiKul99OYRWfBiH0xc khW4C+2mTLD9ARaeSW6GzsJeIlb2zGmVXq34VgWfqmWe1pKa1noyGDCW8sToNjOh/J+w tpdeo/Xojvz1GmblCBzpRmBeA/8JS+WEDx7dcgBHT28BAVhnXkHYGkdzynQ7TvIjjeOP dOyaDh4ZozWGO2aJvqeluyf00VVfLlN5qsRz6bH3JirfYzB1B2hbN6NnJFytcwZmad10 0ZTW1tkpe7bEa0zmJGvS4gcd5lN/u4m6mEVLy08/EzjeVpFYHGf2XqjB6ezQ03yFzN7I wdOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=nET3FNDhKd11j79HL1cMUI6pnMesFr1DOO6ipB+4leA=; b=Q8SG43yY3RNL+3sm9Oe2fLXPFV6z120zllJWxYTj/SvFHjfLQ6N4lHNz/BAo29rYXI C/e3EgSECdxXPG7dgMyXaIw8uh8Fw3t4WHvwkac1oapUqkFpVQPgryW4qmOdY1AcugTK eoRHpBONK5Hm+1zbNqq/bWF6rRuwV7quacavxG97ji5wBZP8a6bZbYDwJDy//tZckdC8 fzdIV5ICuzL1uqh67Tl1zP8z7lPw03w2DbmUj4OrM4bUGDAtmZc6rk9jS1PHqRPR95Ur eIaS/BJsKvghw6dNoxmTzB1QwRbDfL98AWFpILJOlVODYNZ1BLKpazMiNo1JthpNfP2s s3wg== X-Gm-Message-State: AOAM533gxk6ocbwfvImyCc34d0CiLEkNYAYPWIGn/X2BCi4H+xMYjkvz SQujIMBW/M7HL1AQBVVNVrNvXQ== X-Google-Smtp-Source: ABdhPJw9mputKdu5IX5LnKmwifmD3yXghupQvsitkmC3SoWzZ5b6hlpQFW2jvJrsY1ChZ1KZRlA2XQ== X-Received: by 2002:a1c:e043:: with SMTP id x64mr4737619wmg.48.1611938732160; Fri, 29 Jan 2021 08:45:32 -0800 (PST) Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id i131sm10831564wmi.25.2021.01.29.08.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jan 2021 08:45:31 -0800 (PST) From: "Basil L. Contovounesios" To: jixiuf Subject: Re: bug#46174: 27.1; json-pretty-print: Bad JSON object key: t References: Date: Fri, 29 Jan 2021 16:45:29 +0000 In-Reply-To: (jixiuf's message of "Fri, 29 Jan 2021 22:34:23 +0800") Message-ID: <871re3d74m.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: forcemerge 42545 46174 quit jixiuf writes: > in *scratch* buffer > Eval: (erase-buffer) > insert: {"t":1} > Eval: (require 'json) > M-x: json-pretty-print-buffer > > Got: json-pretty-print: Bad JSON object key: t Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.52 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.52 listed in wl.mailspike.net] 2.0 PDS_TONAME_EQ_TOLOCAL_SHORT Short body with To: name matches everything in local email X-Debbugs-Envelope-To: control Cc: 46174@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) forcemerge 42545 46174 quit jixiuf writes: > in *scratch* buffer > Eval: (erase-buffer) > insert: {"t":1} > Eval: (require 'json) > M-x: json-pretty-print-buffer > > Got: json-pretty-print: Bad JSON object key: t This is a duplicate of https://debbugs.gnu.org/42545 and https://debbugs.gnu.org/45032. -- Basil From unknown Tue Jun 17 22:22:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42545: 28.0.50; json-pretty-print cant't handle json having "t" as a key Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Feb 2021 14:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42545 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Marcelo =?UTF-8?Q?Mu=C3=B1oz?= Cc: 42545@debbugs.gnu.org Received: via spool by 42545-submit@debbugs.gnu.org id=B42545.161305322727070 (code B ref 42545); Thu, 11 Feb 2021 14:21:01 +0000 Received: (at 42545) by debbugs.gnu.org; 11 Feb 2021 14:20:27 +0000 Received: from localhost ([127.0.0.1]:58075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lACpT-00072R-Fl for submit@debbugs.gnu.org; Thu, 11 Feb 2021 09:20:27 -0500 Received: from mail-wr1-f42.google.com ([209.85.221.42]:43289) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lACpQ-00072B-Mi for 42545@debbugs.gnu.org; Thu, 11 Feb 2021 09:20:22 -0500 Received: by mail-wr1-f42.google.com with SMTP id z6so4313884wrq.10 for <42545@debbugs.gnu.org>; Thu, 11 Feb 2021 06:20:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=xgUtq38ZZGd82tElfznz+Ms6Rmsp55/uxBCUJPqXZTg=; b=gQdA57gTOFFBLoGh5Cm9mLh93YZYBWq88OXAnRgaw6oXSMgONy1rXRl5fdmSU86dqd MwvS/y+/3JLlmpyKbTWgvIQ1M4l9zdhJFavkYoP9snDqEgouo4vgWck+jhEHd9Pd9nCz uaXWevo95jF+96xrs7H0pX6JoD+o4rRMErPUL2xGvPG+cKsh4hxSWyK/Mp4jfKiJaqwW fNtnQoV6q8HW8bzy5bxtAsZJ5Gd0uXjGZ808Jnz3++yvB+DuK0t0pIbIBnwM44e/cUge ZmdHdof9FeMlycTpe9bT4nEMHVa94G3dfC/j1qjOVDOdYTPAT+WFdSieo3exyGnjJqVx wqxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=xgUtq38ZZGd82tElfznz+Ms6Rmsp55/uxBCUJPqXZTg=; b=EnwwCRPe9+Z56zct+YWiHcfSDOP3g0TEOh/CESsRw3Iol7Rx/cyeYuNqCrsWRCbOI+ FEYRSWB94/8fNumtyXh8F4tZjf+JRelBmy5y6NU4KVV3g/wbWeQ/Gy/eAbE6HOMq2dnY EwQnc8wFc4dUFXVcHS/wsF42FLdtZTpUGznHKHAUUFAQGowB7UNe3phVIrceREQ/BuRw n6ZMdylnM5lmtTWtJUxt8c9GERXPtLeRpuLjgd/mmsc3KFoRx5pFNLg/k9lYzz/8JAHF rsubsHf1Ct05/VQpy6q55eW8pF8P56/pOeA2AOtaOcIWr/KASdHr8Zi/rKScl81xo+T3 8h8w== X-Gm-Message-State: AOAM530fUPN+kFK33X8EM7tXvjbpQkmX8g271c0CtRY485FU/Ax0r6+1 khSR1ZhkEVX6LqfbWTLSKdkYdg== X-Google-Smtp-Source: ABdhPJySk+5Q8ti+Trjzezm6Ro6uBNxrloGwOHDI1D0RLQQqW9wd2CuaK/hqG8itBZsogghm3ikzRQ== X-Received: by 2002:adf:8bd2:: with SMTP id w18mr6067287wra.204.1613053213759; Thu, 11 Feb 2021 06:20:13 -0800 (PST) Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id f8sm4898539wrp.65.2021.02.11.06.20.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 06:20:12 -0800 (PST) From: "Basil L. Contovounesios" References: <87d04imugs.fsf@tcd.ie> Date: Thu, 11 Feb 2021 14:20:11 +0000 In-Reply-To: <87d04imugs.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 26 Jul 2020 13:38:59 +0300") Message-ID: <87mtwaofdw.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Basil L. Contovounesios" writes: > Marcelo Mu=C3=B1oz writes: > >> Try to apply json-pretty-print to follow json: >> >> {"t": 1, "key":2} >> >> fail with the message: json-pretty-print: Bad JSON object key: t > > Here are some simpler repros: > > (json-encode '((nil . 0))) > (json-encode '((t . 0))) > (json-encode-key nil) > (json-encode-key t) > > All of these fail with json-key-format since at least as far back as > Emacs 24.5. [...] > See also https://debbugs.gnu.org/24252#26 for some precedent in > rewriting json-encode-key without relying on json-encode. > > I'm AFK until start of August, but I'll try to have a better look at > this when I get the chance if no-one beats me to it. Sorry, finally got around to this. The attached patch should fix this issue while also speeding up encoding in a backward compatible way. Using the same benchmark as https://bugs.gnu.org/40693#89 I get the following: encode canada.json old (1.409496598 96 0.7710352720000002) (1.406660968 96 0.7707586369999997) (1.406515696 96 0.7698804519999998) (1.4098724120000001 96 0.7712946) new (1.452364951 96 0.7682001569999999) (1.451790854 96 0.7712237389999999) (1.452158289 96 0.7710199420000006) (1.4520665160000001 96 0.7707500029999999) This shows that the two extra cases of funcall+cond in json-encode slightly slow down encoding of large numbers of numbers, but I doubt it's significant enough. If it is, we can probably just tweak the dispatch order in json-encode. encode citm_catalog.json old (2.7812737399999996 272 2.1942181940000003) (2.77954628 272 2.1904517840000004) (2.779567506 272 2.1901039010000005) (2.778913438 272 2.189370834) new (0.7056556740000001 68 0.55314481) (0.704577043 68 0.5515927839999994) (0.702683784 68 0.5491281600000004) (0.703850623 68 0.5503691039999996) encode twitter.json old (1.427292653 148 1.1098771399999983) (1.428440774 148 1.109535473000001) (1.4265714 148 1.1097104909999977) (1.426152699 148 1.110347719) new (0.365952034 40 0.29652698499999985) (0.366947621 40 0.29772050399999905) (0.36731820000000004 40 0.29776995099999937) (0.366228327 40 0.29696426200000126) These show that examples with more realistic objects are encoded far faster. Decoding performance is not affected. This change fixes some errors in json.el and brings it a tiny bit closer to json.c in handling confusable keys, but doesn't go all the way, for backward compatibility. For example, json-encode and json-serialize still disagree on ((:t . 1)), (("t" . 1)), (t 1), ("t" 1), hash tables with non-string keys, etc. WDYT? --=20 Basil --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-Fix-json.el-encoding-of-confusable-object-keys.patch Content-Transfer-Encoding: quoted-printable >From 911fa28836888fc1d5c9f16fda6ebbb188bfbac5 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Thu, 11 Feb 2021 12:00:05 +0000 Subject: [PATCH] Fix json.el encoding of confusable object keys * lisp/json.el (json-encode-string): Clarify commentary. (json--encode-stringlike): New function that covers a subset of json-encode. (json-encode-key): Use it for more efficient encoding and validation, and to avoid mishandling confusable keys like boolean symbols (bug#42545). (json-encode-array): Make it clearer that argument can be a list. (json-encode): Reuse json-encode-keyword and json--encode-stringlike for a subset of the dispatch logic. (json-pretty-print): Ensure confusable keys like ":a" survive a decoding/encoding roundtrip (bug#24252, bug#45032). * test/lisp/json-tests.el (test-json-encode-string) (test-json-encode-hash-table, test-json-encode-alist) (test-json-encode-plist, test-json-pretty-print-object): Test encoding of confusable keys. --- lisp/json.el | 36 ++++++++++--------- test/lisp/json-tests.el | 79 ++++++++++++++++++++++++++++++++++++----- 2 files changed, 90 insertions(+), 25 deletions(-) diff --git a/lisp/json.el b/lisp/json.el index 1f1f608eab..f20123fcfb 100644 --- a/lisp/json.el +++ b/lisp/json.el @@ -438,7 +438,8 @@ json-encode-string ;; This seems to afford decent performance gains. (setq-local inhibit-modification-hooks t) (setq json--string-buffer (current-buffer)))) - (insert ?\" (substring-no-properties string)) ; see bug#43549 + ;; Strip `read-only' property (bug#43549). + (insert ?\" (substring-no-properties string)) (goto-char (1+ (point-min))) (while (re-search-forward (rx json--escape) nil 'move) (let ((char (preceding-char))) @@ -452,14 +453,20 @@ json-encode-string ;; Empty buffer for next invocation. (delete-and-extract-region (point-min) (point-max))))) =20 +(defun json--encode-stringlike (object) + "Return OBJECT encoded as a JSON string, or nil if not possible." + (cond ((stringp object) (json-encode-string object)) + ((keywordp object) (json-encode-string + (substring (symbol-name object) 1))) + ((symbolp object) (json-encode-string (symbol-name object))))) + (defun json-encode-key (object) "Return a JSON representation of OBJECT. If the resulting JSON object isn't a valid JSON object key, this signals `json-key-format'." - (let ((encoded (json-encode object))) - (unless (stringp (json-read-from-string encoded)) - (signal 'json-key-format (list object))) - encoded)) + ;; Encoding must be a JSON string. + (or (json--encode-stringlike object) + (signal 'json-key-format (list object)))) =20 ;;; Objects =20 @@ -652,11 +659,10 @@ json-read-array ;; Array encoding =20 (defun json-encode-array (array) - "Return a JSON representation of ARRAY." + "Return a JSON representation of ARRAY. +ARRAY can also be a list." (if (and json-encoding-pretty-print - (if (listp array) - array - (> (length array) 0))) + (not (length=3D array 0))) (concat "[" (json--with-indentation @@ -737,15 +743,9 @@ json-encode OBJECT should have a structure like one returned by `json-read'. If an error is detected during encoding, an error based on `json-error' is signaled." - (cond ((eq object t) (json-encode-keyword object)) - ((eq object json-null) (json-encode-keyword object)) - ((eq object json-false) (json-encode-keyword object)) - ((stringp object) (json-encode-string object)) - ((keywordp object) (json-encode-string - (substring (symbol-name object) 1))) + (cond ((json-encode-keyword object)) ((listp object) (json-encode-list object)) - ((symbolp object) (json-encode-string - (symbol-name object))) + ((json--encode-stringlike object)) ((numberp object) (json-encode-number object)) ((arrayp object) (json-encode-array object)) ((hash-table-p object) (json-encode-hash-table object)) @@ -774,6 +774,8 @@ json-pretty-print (json-null :json-null) ;; Ensure that ordering is maintained. (json-object-type 'alist) + ;; Ensure that keys survive roundtrip (bug#24252, bug#42545). + (json-key-type 'string) (orig-buf (current-buffer)) error) ;; Strategy: Repeatedly `json-read' from the original buffer and diff --git a/test/lisp/json-tests.el b/test/lisp/json-tests.el index 11b61d8b47..9886dc0d45 100644 --- a/test/lisp/json-tests.el +++ b/test/lisp/json-tests.el @@ -421,12 +421,21 @@ test-json-encode-string "\"\\nasd=D1=84=D1=8B=D0=B2\\u001f\u007ffgh\\t\""))) =20 (ert-deftest test-json-encode-key () - (should (equal (json-encode-key "") "\"\"")) (should (equal (json-encode-key '##) "\"\"")) (should (equal (json-encode-key :) "\"\"")) - (should (equal (json-encode-key "foo") "\"foo\"")) - (should (equal (json-encode-key 'foo) "\"foo\"")) - (should (equal (json-encode-key :foo) "\"foo\"")) + (should (equal (json-encode-key "") "\"\"")) + (should (equal (json-encode-key 'a) "\"a\"")) + (should (equal (json-encode-key :a) "\"a\"")) + (should (equal (json-encode-key "a") "\"a\"")) + (should (equal (json-encode-key t) "\"t\"")) + (should (equal (json-encode-key :t) "\"t\"")) + (should (equal (json-encode-key "t") "\"t\"")) + (should (equal (json-encode-key nil) "\"nil\"")) + (should (equal (json-encode-key :nil) "\"nil\"")) + (should (equal (json-encode-key "nil") "\"nil\"")) + (should (equal (json-encode-key ":a") "\":a\"")) + (should (equal (json-encode-key ":t") "\":t\"")) + (should (equal (json-encode-key ":nil") "\":nil\"")) (should (equal (should-error (json-encode-key 5)) '(json-key-format 5))) (should (equal (should-error (json-encode-key ["foo"])) @@ -572,6 +581,39 @@ test-json-encode-hash-table (should (equal (json-encode-hash-table #s(hash-table)) "{}")) (should (equal (json-encode-hash-table #s(hash-table data (a 1))) "{\"a\":1}")) + (should (equal (json-encode-hash-table #s(hash-table data (t 1))) + "{\"t\":1}")) + (should (equal (json-encode-hash-table #s(hash-table data (nil 1))) + "{\"nil\":1}")) + (should (equal (json-encode-hash-table #s(hash-table data (:a 1))) + "{\"a\":1}")) + (should (equal (json-encode-hash-table #s(hash-table data (:t 1))) + "{\"t\":1}")) + (should (equal (json-encode-hash-table #s(hash-table data (:nil 1))) + "{\"nil\":1}")) + (should (equal (json-encode-hash-table + #s(hash-table test equal data ("a" 1))) + "{\"a\":1}")) + (should (equal (json-encode-hash-table + #s(hash-table test equal data ("t" 1))) + "{\"t\":1}")) + (should (equal (json-encode-hash-table + #s(hash-table test equal data ("nil" 1))) + "{\"nil\":1}")) + (should (equal (json-encode-hash-table + #s(hash-table test equal data (":a" 1))) + "{\":a\":1}")) + (should (equal (json-encode-hash-table + #s(hash-table test equal data (":t" 1))) + "{\":t\":1}")) + (should (equal (json-encode-hash-table + #s(hash-table test equal data (":nil" 1))) + "{\":nil\":1}")) + (should (member (json-encode-hash-table #s(hash-table data (t 2 :nil 1= ))) + '("{\"nil\":1,\"t\":2}" "{\"t\":2,\"nil\":1}"))) + (should (member (json-encode-hash-table + #s(hash-table test equal data (:t 2 ":t" 1))) + '("{\":t\":1,\"t\":2}" "{\"t\":2,\":t\":1}"))) (should (member (json-encode-hash-table #s(hash-table data (b 2 a 1))) '("{\"a\":1,\"b\":2}" "{\"b\":2,\"a\":1}"))) (should (member (json-encode-hash-table #s(hash-table data (c 3 b 2 a = 1))) @@ -638,7 +680,16 @@ test-json-encode-alist (let ((json-encoding-object-sort-predicate nil) (json-encoding-pretty-print nil)) (should (equal (json-encode-alist ()) "{}")) - (should (equal (json-encode-alist '((a . 1))) "{\"a\":1}")) + (should (equal (json-encode-alist '((a . 1) (t . 2) (nil . 3))) + "{\"a\":1,\"t\":2,\"nil\":3}")) + (should (equal (json-encode-alist '((:a . 1) (:t . 2) (:nil . 3))) + "{\"a\":1,\"t\":2,\"nil\":3}")) + (should (equal (json-encode-alist '(("a" . 1) ("t" . 2) ("nil" . 3))) + "{\"a\":1,\"t\":2,\"nil\":3}")) + (should (equal (json-encode-alist '((":a" . 1) (":t" . 2) (":nil" . 3)= )) + "{\":a\":1,\":t\":2,\":nil\":3}")) + (should (equal (json-encode-alist '((t . 1) (:nil . 2) (":nil" . 3))) + "{\"t\":1,\"nil\":2,\":nil\":3}")) (should (equal (json-encode-alist '((b . 2) (a . 1))) "{\"b\":2,\"a\":= 1}")) (should (equal (json-encode-alist '((c . 3) (b . 2) (a . 1))) "{\"c\":3,\"b\":2,\"a\":1}")))) @@ -687,8 +738,14 @@ test-json-encode-plist (should (equal (json-encode-plist ()) "{}")) (should (equal (json-encode-plist '(:a 1)) "{\"a\":1}")) (should (equal (json-encode-plist '(:b 2 :a 1)) "{\"b\":2,\"a\":1}")) - (should (equal (json-encode-plist '(:c 3 :b 2 :a 1)) - "{\"c\":3,\"b\":2,\"a\":1}")))) + (should (equal (json-encode-plist '(":d" 4 "c" 3 b 2 :a 1)) + "{\":d\":4,\"c\":3,\"b\":2,\"a\":1}")) + (should (equal (json-encode-plist '(nil 2 t 1)) + "{\"nil\":2,\"t\":1}")) + (should (equal (json-encode-plist '(:nil 2 :t 1)) + "{\"nil\":2,\"t\":1}")) + (should (equal (json-encode-plist '(":nil" 4 "nil" 3 ":t" 2 "t" 1)) + "{\":nil\":4,\"nil\":3,\":t\":2,\"t\":1}")))) =20 (ert-deftest test-json-encode-plist-pretty () (let ((json-encoding-object-sort-predicate nil) @@ -950,7 +1007,13 @@ test-json-pretty-print-object ;; Nested array. (json-tests-equal-pretty-print "{\"key\":[1,2]}" - "{\n \"key\": [\n 1,\n 2\n ]\n}")) + "{\n \"key\": [\n 1,\n 2\n ]\n}") + ;; Confusable keys (bug#24252, bug#42545). + (json-tests-equal-pretty-print + (concat "{\"t\":1,\"nil\":2,\":t\":3,\":nil\":4," + "\"null\":5,\":json-null\":6,\":json-false\":7}") + (concat "{\n \"t\": 1,\n \"nil\": 2,\n \":t\": 3,\n \":nil\": 4," + "\n \"null\": 5,\n \":json-null\": 6,\n \":json-false\": 7\n= }"))) =20 (ert-deftest test-json-pretty-print-array () ;; Empty. --=20 2.30.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 11 09:22:17 2021 Received: (at control) by debbugs.gnu.org; 11 Feb 2021 14:22:17 +0000 Received: from localhost ([127.0.0.1]:58086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lACrI-000764-TB for submit@debbugs.gnu.org; Thu, 11 Feb 2021 09:22:17 -0500 Received: from mail-wm1-f41.google.com ([209.85.128.41]:53228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lACrH-00075p-59 for control@debbugs.gnu.org; Thu, 11 Feb 2021 09:22:15 -0500 Received: by mail-wm1-f41.google.com with SMTP id l17so4171529wmq.2 for ; Thu, 11 Feb 2021 06:22:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=message-id:date:to:from:subject; bh=yHGA8/vBElME/zquMAM/3uHBUZNf4wAbGqSICc1uBEU=; b=C2Vd6gIvNQ/IST6Fg1PmnHM9mGqHRYvkgx+a0clFZEQThyHIg6NWWyxbC0y5uFJVAX FiF4DY7zpEuatrECsbOWWfGLpsNBtY6I89kcKhJnoouKytzK6JT4C1uGfocmhRKtxA7u fotZ86HIV5iC1e0nqNO4oU/GB3C1Ae2g3sZ8CAqv5lYb+XkQJTJph2XGwH3APNPcTpCz Ng4xqSrMceC/P9wljLMI2jT8x3QRMtv0+PWYqj7rnFwZitb8xvldVE4mV2/s4Z3Ywfdh GGojDuP6g/gBo/PvsiSvvjj8wcSSRZXdj2Dcz2z2vbJcS5BwRFFk3ke1QnJnMcjIhQq7 PlFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:to:from:subject; bh=yHGA8/vBElME/zquMAM/3uHBUZNf4wAbGqSICc1uBEU=; b=fMwVX1qn3yXX7H/GCU7rU5H9aKeiQ+Y9/vgwERmN3WqKXzLCUBC1oyt0OAKcwfLsrk 9obIHYjsxcn7ciBhaY+KNV/t8m5AOe9H2FQIe65q3f/7f2oNTZizAv0O4U13njuMx5h7 Ayl+jah2D35PmiROcrtVSXgleJIevDCWXqDJWYUzJXbbIN9wn8Qe0k5Nq25P1faIy2vD OpYwRpPSbMDP9jp0V1UA6LXvzTZdU1YPuBpvzri4Ea49Yzr5YZYZOvYrD5klchGBn3Jb dfj6wmcFQFPRu7+eVSrFWo/GsR/1ctiq0XPd36nIf8mlMqGJkSCD0A2BOWG5KE8ZlJ3V da6g== X-Gm-Message-State: AOAM532USd+7Ca77/Cjfhsho94KhEzN8hlAPgl+heWu+JX0cQkSP8nwj doia1To3aGslaQ8YrFf6Susmu79kLdddlA== X-Google-Smtp-Source: ABdhPJwjeR9NJaBba9N8g4zdNsv2cyCRXC95JkAWe4nlbw9c8KJL7Y1gQE+IqsCvPlLeqvlemcLSsw== X-Received: by 2002:a05:600c:210f:: with SMTP id u15mr851246wml.126.1613053329218; Thu, 11 Feb 2021 06:22:09 -0800 (PST) Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id q15sm5372664wrr.58.2021.02.11.06.22.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 06:22:08 -0800 (PST) Message-ID: <60253d90.1c69fb81.5b559.146d@mx.google.com> Date: Thu, 11 Feb 2021 14:22:08 +0000 To: control@debbugs.gnu.org From: "Basil L. Contovounesios" Subject: control message for bug #42545 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 42545 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 21 08:02:11 2021 Received: (at control) by debbugs.gnu.org; 21 Feb 2021 13:02:11 +0000 Received: from localhost ([127.0.0.1]:53660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDoNG-0000GE-W5 for submit@debbugs.gnu.org; Sun, 21 Feb 2021 08:02:11 -0500 Received: from mail-wr1-f52.google.com ([209.85.221.52]:40764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDoNC-0000Fc-3R for control@debbugs.gnu.org; Sun, 21 Feb 2021 08:02:09 -0500 Received: by mail-wr1-f52.google.com with SMTP id v14so16135051wro.7 for ; Sun, 21 Feb 2021 05:02:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ygwDcWuKyLUKai3145P8LxvU26bxGUe1N3Etz1pJVkw=; b=UHRd7TUToJK1r1T+I8jnhv2R4nvCdbi+MYHl5/3M/klutFidMHAEEpGKfyLegtOZdB KqDbM0w3gpsTUwr7AhNennE4YzoROBdplcEuP+ZJgGkYq+QBUSX65cQMTwDEVb470YAK YHYvm1z44RNLlHArB8ZCuVQDyX0CahsHjea0OTRjGJvlSl5FlwYzJEEijBso1qcNxZHg M7NadutnBayfdbPxeJs0PjXEMw4eUibhZ/kfEh/38bwFLgULG8U4DdXnvv/d6MQh+SlI gnftR0fdT2jO7O6dno5AsHYIkuHAz/rF+7UdfVtloHGjGrfpY39M2frY97ZItHjdzyNP 9EzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ygwDcWuKyLUKai3145P8LxvU26bxGUe1N3Etz1pJVkw=; b=oCbjW64KIiLWCD6GnVk/L0lun9im647/8zTXgQMwpG2apznpiKimBdpJlNtx0UZIN5 DoL1Va/Us9IUUh00jgWehEINi+p1Kp0vOcbu4ikawC/pNTWTEbE/qvg/F6z2jObUySiy vkpv6oIg8LyByorXYzzL54SWs+hO3VUvyjEgbOdI9fGXrQqvc23TuDl80cE3hpED5iSM KAZ7VoSaQtmfwb6GUHonX61vlpSBDki+of+ORYpBNRo0MFcQkgLTCZawxH7kPYQK4Qr0 JwD6dmcc6av+EW4zGQPFSQ3ZSVw0qQd0106LBjdsXxsHgFS6ru2/PFTlNu9cLtIoEJaF iTKA== X-Gm-Message-State: AOAM532bBWa42ggvn+ilAMk3oNcrs4KxknMtPiwHpgUey0mSy2h7Btc7 n8lVGZ2npAczyrRiLyZsLew0+Q== X-Google-Smtp-Source: ABdhPJwUVCebGMgWNuENtp+ThN6Ww33k6xlTs2r6XKVfENhIXwjQn/nVBPsYEpWVhRpXrjqG90VIBA== X-Received: by 2002:adf:fd51:: with SMTP id h17mr10134236wrs.420.1613912520243; Sun, 21 Feb 2021 05:02:00 -0800 (PST) Received: from localhost ([51.37.47.108]) by smtp.gmail.com with ESMTPSA id r7sm21432017wmh.38.2021.02.21.05.01.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 05:01:59 -0800 (PST) From: "Basil L. Contovounesios" To: Marcelo =?utf-8?Q?Mu=C3=B1oz?= Subject: Re: bug#42545: 28.0.50; json-pretty-print cant't handle json having "t" as a key References: <87d04imugs.fsf@tcd.ie> <87mtwaofdw.fsf@tcd.ie> Date: Sun, 21 Feb 2021 13:01:57 +0000 In-Reply-To: <87mtwaofdw.fsf@tcd.ie> (Basil L. Contovounesios's message of "Thu, 11 Feb 2021 14:20:11 +0000") Message-ID: <87wnv1mv5m.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: 42545-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 42545 fixed close 42545 28.1 quit "Basil L. Contovounesios" writes: > The attached patch should fix this issue while also speeding up > encoding in a backward compatible way. I've now pushed it to master, and am therefore closing this report. Fix json.el encoding of confusable object keys 908f251e19 2021-02-21 12:53:45 +0000 https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=908f251e19dc64c75000f87bc6db4e9a8852d1ad Thanks, -- Basil From unknown Tue Jun 17 22:22:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42545: 28.0.50; json-pretty-print cant't handle json having "t" as a key Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Feb 2021 01:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42545 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch fixed To: "Basil L. Contovounesios" , Marcelo =?UTF-8?Q?Mu=C3=B1oz?= Cc: 42545-done@debbugs.gnu.org Received: via spool by 42545-done@debbugs.gnu.org id=D42545.1614043411513 (code D ref 42545); Tue, 23 Feb 2021 01:24:02 +0000 Received: (at 42545-done) by debbugs.gnu.org; 23 Feb 2021 01:23:31 +0000 Received: from localhost ([127.0.0.1]:57945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEMQF-00008D-Bi for submit@debbugs.gnu.org; Mon, 22 Feb 2021 20:23:31 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:55555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEMQE-000080-4k for 42545-done@debbugs.gnu.org; Mon, 22 Feb 2021 20:23:30 -0500 Received: by mail-wm1-f52.google.com with SMTP id i9so879839wml.5 for <42545-done@debbugs.gnu.org>; Mon, 22 Feb 2021 17:23:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+KcCycaRuhNcxUhXZqFykmZWTP3BEvRMtGU3dJ8kwsc=; b=Z4Cnc2JtlvSvNLZPn5+dyKzdcFoxfvHY8Ff1mOa/Ez0DmQOLLwF8922B69s4pt10bj MKa6JHcg6TBUp8P5QxhEBTO7GQZyhhr5VXYa/GRYqJ5jfinXNBz8/99QYFmWYsZwBedR V6kENvGQC7GjkQERnKxXJAl87XplhLegguc4tydmUkLCZ59M5YjIVLVwQcZ6KoFkix7i UvbEuL2DP+5uQfTPLwNzLOuLSU00WlKfaEzJ+X+X88MCe+f7zCpbdI4bYYG+kq0gDaqm Xrn4Gu47XpCqKpEDrG1MnQNvNllmBBe5/0UmmBcRGsSvmw/7jQOAmNX63NQ5H3GwUkNg CWhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+KcCycaRuhNcxUhXZqFykmZWTP3BEvRMtGU3dJ8kwsc=; b=teaWBA0vgTQmzkPAZsz+7DxAtDWq0xZeGdahpj6uvG2wkil02U0Pn6dgedqVYlMFo/ zPLJgS7BSBSJq/RNt5rUrwdXwF4bA8KkSgvqPxrjxkWpR6bM3DeiQ+0TgvX6g+FZtlnT fCX3OyNGP5wRVea1LUmD5pwvofbi9KLJqeFVW74QfseCAsLwPunFXJTpj/CaoA/tKImt GV1P6c4APuQsRlSxcUYOnxAPrywbhzoVKeVUN/dtW4QSgPrNmXfWpdNc/+HTxVav7kM+ hN9yDXCNY1FLZhyQLs5hBGVPZBbfgPj/xv245A+jdQrR51gvhLa7Fe/L77TLeQQcA6rY efhg== X-Gm-Message-State: AOAM532GQ1NONQVVqbu9ddR++Z7XrQLO+9oNnT9V+HokkgRMmjCcFp+v 66LRc+jTuUI18QeWy6tbWhDy5+Az6d8= X-Google-Smtp-Source: ABdhPJypX2/GaufGuTvskFqj+ymd90Vxp32YEQZ2LkO1WefFvHCPuAo7yyYgrm/pEYxez8zTs8ez8g== X-Received: by 2002:a1c:f702:: with SMTP id v2mr21903803wmh.131.1614043404339; Mon, 22 Feb 2021 17:23:24 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id c9sm902568wmb.33.2021.02.22.17.23.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Feb 2021 17:23:24 -0800 (PST) References: <87d04imugs.fsf@tcd.ie> <87mtwaofdw.fsf@tcd.ie> <87wnv1mv5m.fsf@tcd.ie> From: Dmitry Gutov Message-ID: Date: Tue, 23 Feb 2021 03:23:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87wnv1mv5m.fsf@tcd.ie> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi Basil, On 21.02.2021 15:01, Basil L. Contovounesios wrote: >> The attached patch should fix this issue while also speeding up >> encoding in a backward compatible way. > I've now pushed it to master, and am therefore closing this report. Looking good, thank you! From unknown Tue Jun 17 22:22:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42545: 28.0.50; json-pretty-print cant't handle json having "t" as a key Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Feb 2021 01:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42545 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch fixed To: Dmitry Gutov Cc: 42545@debbugs.gnu.org Received: via spool by 42545-submit@debbugs.gnu.org id=B42545.16140445112143 (code B ref 42545); Tue, 23 Feb 2021 01:42:01 +0000 Received: (at 42545) by debbugs.gnu.org; 23 Feb 2021 01:41:51 +0000 Received: from localhost ([127.0.0.1]:57951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEMhy-0000YV-Te for submit@debbugs.gnu.org; Mon, 22 Feb 2021 20:41:51 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:53565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEMhx-0000YG-14 for 42545@debbugs.gnu.org; Mon, 22 Feb 2021 20:41:49 -0500 Received: by mail-wm1-f49.google.com with SMTP id x16so913147wmk.3 for <42545@debbugs.gnu.org>; Mon, 22 Feb 2021 17:41:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ma+S0YrUwvStZwnKCQFTr+F04H9HHRe7x6Qrx//DWNo=; b=bxKnBaZthGpgzuXWfUbdFczDTMGgJtNVsFOi4Ho7uOwwwNUzeWYJD4GQHj1FT+hf/J DuXe4A1IAqo2uWtEVZe9LOLz5Ef2LH5Ed6emmh3H7GS/ODPHvVv71gLC/DO+hkyWTndU BTW6Pl5aw2i/y7Whdm0qvfxR6Yoy2OETPZmOjVX9c5D16E8ckrZzsd73C7xMa3V0NRon wG6eAspcan27Y1ApQNyHl4jgrzaKvFVWR5nk/XRYXxBbZYwsvKVx4HeX81DzYYfjAtt0 1F4fEH7q0JUD9RvJKu9Uu6ZIiWBdSo7QER15VTOrG0h4SvOewP50oFIDFDZDbLaBZ8M6 S6Cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ma+S0YrUwvStZwnKCQFTr+F04H9HHRe7x6Qrx//DWNo=; b=REBoijhTFC32AMik1SaRBT3nb6AEWZ67MCRDlp6/cxxDu5W3qFCKGkAl3MjelyBOjb 33d6uJ/3lmkr7hCG2ogDOwBlhE7jxyW1xxycrhQN8GJs/YrEmA4XozgeoDYE5wbmxNir zSFyU7vcQjjzP4i+1X9kZn3I8Pk3ZFqLPnhmJtlKFzERn3RJ9311eVLAKzCqqrnVp0tz qt/KjHYWrLwOuNoZIT3pns4LB21ONutRObr0RQLgYyPPDPbUJ0XKrtyms13eh/WXth+d cV8dgL+JUuBFC2YzZ9SZ0xVRless/5Voc3QRNFgByMvt/8t4+xdj3s02/+U0yL3BzASg 8cGg== X-Gm-Message-State: AOAM532+rlKKhG8qzm8vYH8hyzWRT4So8iABzOcgDiivhvNEl9CPE48b KRlIjTnJDD/OIamKUdwJniFrGQ== X-Google-Smtp-Source: ABdhPJykVRoIpPEUdjMsT3AtPrEgiocTraBrU+BJYTzrcIJr1N5wTvRaJLh8BkhMvkK7CAQWSB5bug== X-Received: by 2002:a05:600c:1446:: with SMTP id h6mr13493426wmi.129.1614044503228; Mon, 22 Feb 2021 17:41:43 -0800 (PST) Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id u12sm851338wmq.38.2021.02.22.17.41.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 17:41:42 -0800 (PST) From: "Basil L. Contovounesios" References: <87d04imugs.fsf@tcd.ie> <87mtwaofdw.fsf@tcd.ie> <87wnv1mv5m.fsf@tcd.ie> Date: Tue, 23 Feb 2021 01:41:41 +0000 In-Reply-To: (Dmitry Gutov's message of "Tue, 23 Feb 2021 03:23:19 +0200") Message-ID: <87pn0r1rxm.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Dmitry, Dmitry Gutov writes: > On 21.02.2021 15:01, Basil L. Contovounesios wrote: >>> The attached patch should fix this issue while also speeding up >>> encoding in a backward compatible way. >> I've now pushed it to master, and am therefore closing this report. > > Looking good, thank you! Thanks, you're welcome! But I'm not yet done speeding up json.el encoding backward compatibly, so stay tuned ;). -- Basil From unknown Tue Jun 17 22:22:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42545: 28.0.50; json-pretty-print cant't handle json having "t" as a key Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Feb 2021 12:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42545 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch fixed To: "Basil L. Contovounesios" Cc: 42545@debbugs.gnu.org Received: via spool by 42545-submit@debbugs.gnu.org id=B42545.161408226930295 (code B ref 42545); Tue, 23 Feb 2021 12:12:01 +0000 Received: (at 42545) by debbugs.gnu.org; 23 Feb 2021 12:11:09 +0000 Received: from localhost ([127.0.0.1]:58474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEWWz-0007sZ-BD for submit@debbugs.gnu.org; Tue, 23 Feb 2021 07:11:09 -0500 Received: from mail-wr1-f44.google.com ([209.85.221.44]:42812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEWWx-0007sL-Kk for 42545@debbugs.gnu.org; Tue, 23 Feb 2021 07:11:07 -0500 Received: by mail-wr1-f44.google.com with SMTP id r3so10696726wro.9 for <42545@debbugs.gnu.org>; Tue, 23 Feb 2021 04:11:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BdhS842H/9y2M7SEFYF6Yfm6JcqY2LiJppt8ftfS7ow=; b=NECaQQ+m5bOaYYQVIMLONV/j3i5vUoNAeuqvrJrX/BqlUqlUkvTsiCm34+LHBKb8jW k9c4hFheJztA3bvcCxA7seOB4AnNmPXrxNWAJNaPeEG2eIUGTRD6IIKFnUnK8hktQpmq DAmJHtGlQIhsJEsFe2XXnYWkiTO8KsHxpzmFYEl99c+tqDXEhsWuXdp7Oxt1Y5TH4Lr9 3DjJGX2WEgRUtaUMl/WFHYuqDv/xWxWoxpLUa+yHPe9M0Bw2E0LUd6BupcQyAaCOm87r txS1Lydm14RyZZvNmVCQKYyD0H1Sz3HJ2JO/zSoOsvXA9aUXgC4PoGqb7JMWZIs8nHJm CACA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BdhS842H/9y2M7SEFYF6Yfm6JcqY2LiJppt8ftfS7ow=; b=gjH1n6Zj12Fpq2oaefe8Ea7wNBFvqeVkdXJ9BVQhudnjYlYmIYdUs81kTA5p/Yp3vb 4gFJ0cP035ewl98SEMt12JyX3ztsdr9ovri61A0wbLvd+YCuAn2IULdlvh85l8kLBx5v E+EFiR8+DMfeoadPXpZbQ3AGbDFCQw+erly/fwE5wOWGeGPGlrhB9LPT9htCqvoYv5jL EwzBhiHFHvZKFppHyQ+7adZQmgxhaKy56Z/rO3/TtlYOw6pEyLeXCPRo5AVViRTfE5Py sLoLBH2O+zW5IxCdOgeALxr61BW4ouHP92r0BWXeZCMbqK+aFzDv38gKdpxAYTYWwdco XtLA== X-Gm-Message-State: AOAM533DNuJqTPimTh+VOd3OpMRRd9lZWwrk2QP2RqlgucYqWyWeM73u UNiMBcAuJ5Dpig6lE2slaqMHn8CXquw= X-Google-Smtp-Source: ABdhPJx02dZ+ZSkkReEdG5gazUHmAEWhNHh3o280/zm2+KNDFqLYhMKjOhHWovE2tt6+22iNd2ta9Q== X-Received: by 2002:a5d:5149:: with SMTP id u9mr26918838wrt.348.1614082261669; Tue, 23 Feb 2021 04:11:01 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id x66sm2358653wmg.6.2021.02.23.04.11.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Feb 2021 04:11:01 -0800 (PST) References: <87d04imugs.fsf@tcd.ie> <87mtwaofdw.fsf@tcd.ie> <87wnv1mv5m.fsf@tcd.ie> <87pn0r1rxm.fsf@tcd.ie> From: Dmitry Gutov Message-ID: <43d819ea-739d-7184-114b-f09ea2cb7104@yandex.ru> Date: Tue, 23 Feb 2021 14:10:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87pn0r1rxm.fsf@tcd.ie> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 23.02.2021 03:41, Basil L. Contovounesios wrote: > Thanks, you're welcome! But I'm not yet done speeding up json.el > encoding backward compatibly, so stay tuned;). I'm more partial to faster decoding myself ;-). but correctness improvements are welcome either way! From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 27 09:07:25 2021 Received: (at control) by debbugs.gnu.org; 27 Feb 2021 14:07:25 +0000 Received: from localhost ([127.0.0.1]:43447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lG0Fg-00019R-Qc for submit@debbugs.gnu.org; Sat, 27 Feb 2021 09:07:25 -0500 Received: from mail-wr1-f44.google.com ([209.85.221.44]:45743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lG0Fe-00019C-Js for control@debbugs.gnu.org; Sat, 27 Feb 2021 09:07:23 -0500 Received: by mail-wr1-f44.google.com with SMTP id e10so11101357wro.12 for ; Sat, 27 Feb 2021 06:07:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:subject:date:message-id:mime-version; bh=+TWs7FjCdjKrKDzN0UDESFaD87QWk5t/X7mMcjO39Xw=; b=WQKl9hA2hR6iI7pMC3rbbZ9CeexSusUUbVSF1eHaZQO1RKfxBB6x8AmfvrCUxRtSIf /ziK4caO+xr7QGJpTDP1qnnY/D2eF8+2GcP0ep2KDqh+sRJPqSHU2nCzEV2B/HHIoZSR nVBjG9xblWvmwE1LSl04Q1eg0qGd0V/Lw8eFrHJu5LVrjoukSesgsf4/8Y75ir1xryH+ iCfJ1ekiwuQsxNVifxrWRSLLZhjW85JwhDT2SvdsAONjfCRYcOPW2RoKE+2QVQA71A98 EaPMFEKKN27tdhlGTcZ6rmOUgZ5ZGZC6u11H16dZC4b79PuWHtMGWzGut6H7B53KU7kc sWkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=+TWs7FjCdjKrKDzN0UDESFaD87QWk5t/X7mMcjO39Xw=; b=BPqfA8cggUB5xO2qcuIznSbpqZJnNNg28O1h16DNOyEukY3/3udqjV3+pMYpwLLq8B aTSCBxx8CTqyOhl+g4FFSf46cm/Lqxn+5LJ40ZrEKGxobvC6fCBkU1fDlpomwo9FZx0J s+3Uf8uu1bkMC+CRZOOxkXl1n6rqUx9m/6gB/99V/abyw/azGhaVwICv7TsCFZW8/C8X v+OcB+qw8p8Wwj5OF5CN6Sw2AFMwrT1iK713e/ongTX1BoYrvbmSHHxCtqy2Ex06VMzS waYY8DlzlQATmXr8jKg7fjSexRrkt7JQ1139jXTK4+L+TIAJYJOkgYoV07X8q2ZxP6+V L81Q== X-Gm-Message-State: AOAM531uwtgR5rAtSTL49qrGDrWyaZ4AmaysQAge4wOxzrM+nB27SqgT U44j3KOJep6Q5twOKaQUEBGr/iyUtIsl4g== X-Google-Smtp-Source: ABdhPJxOaEemu5EoUBtvV1mnDfA10aWryB1Xkp/xShCuE/cMfHVuV0DkfajUeSdDlFPqIrMr+PDOUg== X-Received: by 2002:adf:df10:: with SMTP id y16mr4700179wrl.372.1614434836481; Sat, 27 Feb 2021 06:07:16 -0800 (PST) Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id l2sm18625389wrv.50.2021.02.27.06.07.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Feb 2021 06:07:15 -0800 (PST) From: "Basil L. Contovounesios" To: control@debbugs.gnu.org Subject: control message for bug #46811 Date: Sat, 27 Feb 2021 14:07:14 +0000 Message-ID: <877dmt4nal.fsf@tcd.ie> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 42545 46811 quit