Function: json-new-object

json-new-object is a byte-compiled function defined in json.el.gz.

Signature

(json-new-object)

Documentation

Create a new Elisp object corresponding to an empty JSON object.

Please see the documentation of json-object-type.

Source Code

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

;; JSON object parsing

(defun json-new-object ()
  "Create a new Elisp object corresponding to an empty JSON object.
Please see the documentation of `json-object-type'."
  (and (eq json-object-type 'hash-table)
       (make-hash-table :test #'equal)))