Function: jsonrpc--json-read
jsonrpc--json-read is a byte-compiled function defined in
jsonrpc.el.gz.
Signature
(jsonrpc--json-read)
Documentation
Read JSON object in (binary unibyte) buffer from point.
Move point to end of buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/jsonrpc.el.gz
(defalias 'jsonrpc--json-read
(if (fboundp 'json-parse-buffer)
(lambda ()
(json-parse-buffer :object-type 'plist
:null-object nil
:false-object :json-false))
(require 'json)
(defvar json-object-type)
(declare-function json-read-from-string "json" (string))
(lambda ()
(let ((json-object-type 'plist))
;; `json-read' can't be used because the old json API requires
;; decoded input.
(prog1
(json-read-from-string
(decode-coding-string
(buffer-substring-no-properties (point) (point-max))
'utf-8-unix t))
(goto-char (point-max))))))
"Read JSON object in (binary unibyte) buffer from point.
Move point to end of buffer.")