Function: json--print-indentation

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

Signature

(json--print-indentation)

Documentation

Insert the current indentation for JSON encoding at point.

Has no effect if json-encoding-pretty-print is nil.

Source Code

;; Defined in /usr/src/emacs/lisp/json.el.gz
(defun json--print-indentation ()
  "Insert the current indentation for JSON encoding at point.
Has no effect if `json-encoding-pretty-print' is nil."
  (when json-encoding-pretty-print
    (insert json--print-indentation-prefix)
    (dotimes (_ json--print-indentation-depth)
      (insert json-encoding-default-indentation))))