json-rpc

https://github.com/skeeto/elisp-json-rpc.git

git clone 'git://github.com/skeeto/elisp-json-rpc.git'
16

Emacs Lisp JSON-RPC Library

This is a JSON-RPC library for Emacs Lisp. It uses the HTTP transport method.

Three functions are provided: json-rpc-connect, json-rpc-close, and json-rpc.

Usage

;; Establish a connection to bitcoind:
(setf bitcoind (json-rpc-connect "localhost" 8332 "bitcoinrpc" "mypassword"))

(json-rpc bitcoind "getblockcount")
;; => 285031

(json-rpc bitcoind "setgenerate" t 3)
;; => nil

(json-rpc bitcoind "bogusmethod")
;; signals (json-rpc-error :message "Method not found" :code -32601)