Function: json-encode-alist
json-encode-alist is a byte-compiled function defined in json.el.gz.
Signature
(json-encode-alist ALIST)
Documentation
Return a JSON representation of ALIST.
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/json.el.gz
;; The following two are unused but useful to keep around due to the
;; inherent ambiguity of lists.
(defun json-encode-alist (alist)
"Return a JSON representation of ALIST."
(json--with-output-to-string (json--print-alist alist)))