Function: json-encode-string

json-encode-string is a byte-compiled function defined in json.el.gz.

Signature

(json-encode-string STRING)

Documentation

Return a JSON representation of STRING.

Probably introduced at or before Emacs version 25.1.

Source Code

;; Defined in /usr/src/emacs/lisp/json.el.gz
(defun json-encode-string (string)
  "Return a JSON representation of STRING."
  (json--with-output-to-string (json--print-string string)))