Main function for JSON encoding.
(json-encode-main x acc) → *
(json-encode x) accumulates the JSON encoding of
This function does not necessarily produce a valid JSON object. Per the JSON RFC, plain JSON values other than arrays and objects are not valid JSON text. See json-encode instead, for a function that does something to fix up atoms.
Theorem:
(defthm character-listp-of-json-encode-main (implies (character-listp acc) (character-listp (json-encode-main x acc))))
Theorem:
(defthm character-listp-of-json-encode-simple-alist (implies (and (character-listp acc)) (character-listp (json-encode-simple-alist x acc))))
Theorem:
(defthm character-listp-of-json-encode-true-list (implies (character-listp acc) (character-listp (json-encode-true-list x acc))))
Theorem:
(defthm character-listp-of-json-encode-improper-cons-list (implies (character-listp acc) (character-listp (json-encode-improper-cons-list x acc))))