Function: jsonrpc--json-encode

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

Signature

(jsonrpc--json-encode ARG1)

Documentation

Encode OBJECT into a JSON string.

Source Code

;; Defined in /usr/src/emacs/lisp/jsonrpc.el.gz
(defalias 'jsonrpc--json-encode
  (if (fboundp 'json-serialize)
      (lambda (object)
        (json-serialize object
                        :false-object :json-false
                        :null-object nil))
    (require 'json)
    (defvar json-false)
    (defvar json-null)
    (declare-function json-encode "json" (object))
    (lambda (object)
      (let ((json-false :json-false)
            (json-null nil))
        (json-encode object))))
  "Encode OBJECT into a JSON string.")