From: soyeomul@doraji.xyz (황병희)
To: 42733@debbugs.gnu.org
Subject: bug#42733: 27.1; json-serialize does not encode list like json-encode
Date: Fri, 07 Aug 2020 11:18:25 +0900 [thread overview]
Message-ID: <ywyvxm8gdspz.fsf@vtyht.birch.chromebook> (raw)
In-Reply-To: <979a7dfc-8bbc-59eb-c85a-14e6bbfd04a6@gmail.com> (Jimmy Yuen Ho Wong's message of "Thu, 6 Aug 2020 23:29:31 +0100")
Jimmy Yuen Ho Wong <wyuenho@gmail.com> writes:
> ...
>> Reproduction:
>>
>> (json-encode '("foo" "bar"))
>> => "[\"foo\",\"bar\"]"
>>
>> (json-serialize '("foo" "bar"))
>>
>> Debugger entered--Lisp error: (wrong-type-argument symbolp "foo")
>> json-serialize(("foo" "bar"))
>>
>> The potential for people to naively substitute json-encode with
>> json-serialize and breaking their code is enormous. This is already
>> happening in lsp-mode. Please make json-serialize behave like
>> json-encode.
>>
>> Jimmy Yuen Ho Wong
I just would like to raise up this PR because i like very much JSON things.
So thanks for Jimmy, indeed...!!!
Sincerely, JSON fan Byung-Hee
--
^고맙습니다 _地平天成_ 감사합니다_^))//
next prev parent reply other threads:[~2020-08-07 2:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-06 22:17 bug#42733: 27.1; json-serialize doesn't not encode list like json-encode Jimmy Yuen Ho Wong
2020-08-06 22:29 ` bug#42733: 27.1; json-serialize does " Jimmy Yuen Ho Wong
2020-08-07 2:18 ` 황병희 [this message]
2021-06-12 12:53 ` bug#42733: 27.1; json-serialize doesn't " Lars Ingebrigtsen
2021-07-05 17:45 ` Philipp
2021-07-05 19:48 ` Lars Ingebrigtsen
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=ywyvxm8gdspz.fsf@vtyht.birch.chromebook \
--to=soyeomul@doraji.xyz \
--cc=42733@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).