Function: json--with-output-to-string

json--with-output-to-string is a macro defined in json.el.gz.

Signature

(json--with-output-to-string &rest BODY)

Documentation

Eval BODY in a temporary buffer bound to standard-output.

Return the resulting buffer contents as a string.

Source Code

;; Defined in /usr/src/emacs/lisp/json.el.gz
;; Encoder utilities

(defmacro json--with-output-to-string (&rest body)
  "Eval BODY in a temporary buffer bound to `standard-output'.
Return the resulting buffer contents as a string."
  (declare (indent 0) (debug t))
  `(with-output-to-string
     (with-current-buffer standard-output
       ;; This affords decent performance gains.
       (setq-local inhibit-modification-hooks t)
       ,@body)))