Function: json-read
json-read is a byte-compiled function defined in json.el.gz.
Signature
(json-read)
Documentation
Parse and return the JSON object following point.
Advances point just past JSON object.
If called with the following JSON after point
{"a": [1, 2, {"c": false}],
"b": "foo"}
you will get the following structure returned:
((a .
[1 2
((c . :json-false))])
(b . "foo"))
Probably introduced at or before Emacs version 28.1.
Source Code
;; Defined in /usr/src/emacs/lisp/json.el.gz
(defun json-read ()
"Parse and return the JSON object following point.
Advances point just past JSON object.
If called with the following JSON after point
{\"a\": [1, 2, {\"c\": false}],
\"b\": \"foo\"}
you will get the following structure returned:
((a .
[1 2
((c . :json-false))])
(b . \"foo\"))"
(json-skip-whitespace)
(json-readtable-dispatch (char-after)))