GNU bug report logs - #42545
json-encode-key can't handle boolean values

Previous Next

Package: emacs;

Reported by: Marcelo Muñoz <ma.munoz.araya <at> gmail.com>

Date: Sun, 26 Jul 2020 08:16:01 UTC

Severity: normal

Tags: fixed, patch

Merged with 45032, 46174, 46811

Found in versions 24.5, 26.3, 27.1, 28.0.50

Fixed in version 28.1

Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Bug is archived. No further changes may be made.

Full log


Message #14 received at control <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Henry Minsky <henry.minsky <at> gmail.com>, 45032 <at> debbugs.gnu.org
Subject: Re: bug#45032: 26.3; json-pretty-print of JSON with dict containing
 't' as a key causes error
Date: Sat, 05 Dec 2020 16:17:32 +0000
forcemerge 42545 45032
quit

Lars Ingebrigtsen <larsi <at> gnus.org> 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




This bug report was last modified 4 years and 80 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.