GNU bug report logs - #46174
27.1; json-pretty-print: Bad JSON object key: t

Previous Next

Package: emacs;

Reported by: jixiuf <jixiuf <at> qq.com>

Date: Fri, 29 Jan 2021 15:22:01 UTC

Severity: normal

Tags: fixed, patch

Merged with 42545, 45032, 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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46174 in the body.
You can then email your comments to 46174 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#46174; Package emacs. (Fri, 29 Jan 2021 15:22:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to jixiuf <jixiuf <at> qq.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 29 Jan 2021 15:22:01 GMT) Full text and rfc822 format available.

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

From: jixiuf <jixiuf <at> qq.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.1; json-pretty-print: Bad JSON object key: t
Date: Fri, 29 Jan 2021 22:34:23 +0800

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



In GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95))
of 2020-08-12 built on builder10-14.porkrind.org
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.7

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
json
Making completion list...
json-pretty-print: Bad JSON object key: t
previous-line: Beginning of buffer [2 times]
Undo
Quit [2 times]
kill-region: Buffer is read-only: #<buffer *Messages*>
Making completion list...

Configured using:
'configure --with-ns '--enable-locallisppath=/Library/Application
Support/Emacs/${version}/site-lisp:/Library/Application
Support/Emacs/site-lisp' --with-modules'

Configured features:
NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES
THREADS JSON PDUMPER

Important settings:
  value of $LC_ALL: zh_CN.UTF-8
  value of $LANG: zh_CN.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs text-property-search time-date
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils json subr-x map seq byte-opt gv bytecomp
byte-compile cconv china-util tooltip eldoc electric uniquify ediff-hook
vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize
mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads kqueue cocoa ns multi-tty make-network-process emacs)

Memory information:
((conses 16 46344 6259)
(symbols 48 6055 1)
(strings 32 15776 1770)
(string-bytes 1 519360)
(vectors 16 10976)
(vector-slots 8 185421 12686)
(floats 8 21 20)
(intervals 56 229 0)
(buffers 1000 12))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#46174; Package emacs. (Fri, 29 Jan 2021 16:46:01 GMT) Full text and rfc822 format available.

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

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: jixiuf <jixiuf <at> qq.com>
Cc: 46174 <at> debbugs.gnu.org
Subject: Re: bug#46174: 27.1; json-pretty-print: Bad JSON object key: t
Date: Fri, 29 Jan 2021 16:45:29 +0000
forcemerge 42545 46174
quit

jixiuf <jixiuf <at> qq.com> 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




Forcibly Merged 42545 45032 46174. Request was from "Basil L. Contovounesios" <contovob <at> tcd.ie> to control <at> debbugs.gnu.org. (Fri, 29 Jan 2021 16:46:02 GMT) Full text and rfc822 format available.

Added tag(s) patch. Request was from "Basil L. Contovounesios" <contovob <at> tcd.ie> to control <at> debbugs.gnu.org. (Thu, 11 Feb 2021 14:23:02 GMT) Full text and rfc822 format available.

Added tag(s) fixed. Request was from "Basil L. Contovounesios" <contovob <at> tcd.ie> to control <at> debbugs.gnu.org. (Sun, 21 Feb 2021 13:03:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 42545 <at> debbugs.gnu.org and Marcelo Muñoz <ma.munoz.araya <at> gmail.com> Request was from "Basil L. Contovounesios" <contovob <at> tcd.ie> to control <at> debbugs.gnu.org. (Sun, 21 Feb 2021 13:03:02 GMT) Full text and rfc822 format available.

Forcibly Merged 42545 45032 46174 46811. Request was from "Basil L. Contovounesios" <contovob <at> tcd.ie> to control <at> debbugs.gnu.org. (Sat, 27 Feb 2021 14:08:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 28 Mar 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 28 days ago.

Previous Next


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