Subject: Re: bug#40693: 28.0.50; json-encode-alist changes alist

From: Dmitry Gutov <[email-masked]>
Date: Sun, 19 Apr 2020 03:10:14 +0300

On 19.04.2020 02:13, Michael Heerdegen wrote:
> I mean, it's really an example of an ugly trap, but how is
> `json-encode-alist' different from other functions working with lists
> that would exploit the same problem?

It's a difference between cl-delete and cl-remove. For example.

But unlike both of them, the semantics of json-encode-alist give no 
indication that the argument is going to be modified.