Function: json-encode-array

json-encode-array is a byte-compiled function defined in json.el.gz.

Signature

(json-encode-array ARRAY)

Documentation

Return a JSON representation of ARRAY.

ARRAY can also be a list.

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/json.el.gz
(defun json-encode-array (array)
  "Return a JSON representation of ARRAY.
ARRAY can also be a list."
  (json--with-output-to-string (json--print-array array)))