json-encode-list

json-encode-list is a compiled Lisp function in `json.el'.

(json-encode-list LIST)

Return a JSON representation of LIST.
Tries to DWIM: simple lists become JSON arrays, while alists and plists
become JSON objects.