Function: json-encode-list
json-encode-list is a byte-compiled function defined in json.el.gz.
This function is obsolete since 28.1; use json-encode instead.
Signature
(json-encode-list LIST)
Documentation
Return a JSON representation of LIST.
Tries to DWIM: alists and plists become JSON objects, while simple lists become JSON arrays.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/json.el.gz
(defun json-encode-list (list)
"Return a JSON representation of LIST.
Tries to DWIM: alists and plists become JSON objects, while
simple lists become JSON arrays."
(declare (obsolete json-encode "28.1"))
(json--with-output-to-string (json--print-list list)))