From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/elisp/jsonrpc-json-object-format.html | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 devdocs/elisp/jsonrpc-json-object-format.html (limited to 'devdocs/elisp/jsonrpc-json-object-format.html') diff --git a/devdocs/elisp/jsonrpc-json-object-format.html b/devdocs/elisp/jsonrpc-json-object-format.html deleted file mode 100644 index 6ccf6cb5..00000000 --- a/devdocs/elisp/jsonrpc-json-object-format.html +++ /dev/null @@ -1,15 +0,0 @@ -

JSONRPC JSON object format

JSONRPC JSON objects are exchanged as Lisp plists (see Property Lists): JSON-compatible plists are handed to the dispatcher functions and, likewise, JSON-compatible plists should be given to jsonrpc-notify, jsonrpc-request, and jsonrpc-async-request.

To facilitate handling plists, this library makes liberal use of cl-lib library (see cl-lib in Common Lisp Extensions for GNU Emacs Lisp) and suggests (but doesn’t force) its clients to do the same. A macro jsonrpc-lambda can be used to create a lambda for destructuring a JSON-object like in this example:

(jsonrpc-async-request
- myproc :frobnicate `(:foo "trix")
- :success-fn (jsonrpc-lambda (&key bar baz &allow-other-keys)
-               (message "Server replied back with %s and %s!"
-                        bar baz))
- :error-fn (jsonrpc-lambda (&key code message _data)
-             (message "Sadly, server reports %s: %s"
-                      code message)))
-
-
-

- Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
- https://www.gnu.org/software/emacs/manual/html_node/elisp/JSONRPC-JSON-object-format.html -

-
-- cgit v1.2.3