Function: json-alist-p

json-alist-p is a byte-compiled function defined in json.el.gz.

Signature

(json-alist-p LIST)

Documentation

Non-nil if and only if LIST is an alist with simple keys.

Source Code

;; Defined in /usr/src/emacs/lisp/json.el.gz
(defun json-alist-p (list)
  "Non-nil if and only if LIST is an alist with simple keys."
  (declare (pure t) (side-effect-free error-free))
  (while (and (consp (car-safe list))
              (atom (caar list))
              (setq list (cdr list))))
  (null list))