Subject: bug#46811: closed (Re: bug#46811: 27.1; json-pretty-print fails if there is a map with "t" as one of the keys)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 27 Feb 2021 11:19:02 +0000

Your bug report

#46811: 27.1; json-pretty-print fails if there is a map with "t" as one of the keys

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
46811: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46811
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#46811: 27.1; json-pretty-print fails if there is a map with "t" as one of the keys
From: Eli Zaretskii <[email-masked]>
To: Anantha Kumaran <[email-masked]>
Cc: [email-masked]
Date: Sat, 27 Feb 2021 13:17:59 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Anantha Kumaran <[email-masked]>
> Date: Sat, 27 Feb 2021 12:19:01 +0530
> 
> mark the json text below and run M-x json-pretty-print
> 
>   {"t": "hello"}
> 
> Debugger entered--Lisp error: (json-key-format t)
>   signal(json-key-format (t))
>   json-pretty-print(1 15 nil)
>   funcall-interactively(json-pretty-print 1 15 nil)
>   call-interactively(json-pretty-print record nil)
>   command-execute(json-pretty-print record)
>   execute-extended-command(nil "json-pretty-print" "json")
>   funcall-interactively(execute-extended-command nil "json-pretty-print" "json")
>   call-interactively(execute-extended-command nil nil)
>   command-execute(execute-extended-command)

Thanks, this is already fixed in the development sources, which will
become Emacs 28.

Subject: 27.1; json-pretty-print fails if there is a map with "t" as one of the keys
From: Anantha Kumaran <[email-masked]>
To: [email-masked]
Date: Sat, 27 Feb 2021 12:19:01 +0530
List-Id: <debbugs-submit.debbugs.gnu.org>

mark the json text below and run M-x json-pretty-print

  {"t": "hello"}

Debugger entered--Lisp error: (json-key-format t)
  signal(json-key-format (t))
  json-pretty-print(1 15 nil)
  funcall-interactively(json-pretty-print 1 15 nil)
  call-interactively(json-pretty-print record nil)
  command-execute(json-pretty-print record)
  execute-extended-command(nil "json-pretty-print" "json")
  funcall-interactively(execute-extended-command nil "json-pretty-print"
"json")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)