Function: json--print-map

json--print-map is a byte-compiled function defined in json.el.gz.

Signature

(json--print-map MAP)

Documentation

Insert JSON object representation of MAP at point.

This works for any MAP satisfying mapp.

Source Code

;; Defined in /usr/src/emacs/lisp/json.el.gz
(defun json--print-map (map)
  "Insert JSON object representation of MAP at point.
This works for any MAP satisfying `mapp'."
  (insert ?\{)
  (unless (map-empty-p map)
    (json--with-indentation
      (map-do #'json--print-pair map)
      (delete-char (- (length json-encoding-separator))))
    (or json-encoding-lisp-style-closings
        (json--print-indentation)))
  (insert ?\}))