unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Anantha Kumaran <ananthakumaran@gmail.com>
To: 46811@debbugs.gnu.org
Subject: bug#46811: 27.1; json-pretty-print fails if there is a map with "t" as one of the keys
Date: Sat, 27 Feb 2021 12:19:01 +0530	[thread overview]
Message-ID: <CACxPpPD76Z4TjRZ1x124zKp1G2=75Ayyy1XHDrSq0NMM9afx2w@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 570 bytes --]

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)

[-- Attachment #2: Type: text/html, Size: 705 bytes --]

             reply	other threads:[~2021-02-27  6:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-27  6:49 Anantha Kumaran [this message]
2021-02-27 11:17 ` bug#46811: 27.1; json-pretty-print fails if there is a map with "t" as one of the keys Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACxPpPD76Z4TjRZ1x124zKp1G2=75Ayyy1XHDrSq0NMM9afx2w@mail.gmail.com' \
    --to=ananthakumaran@gmail.com \
    --cc=46811@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).