Accessing StackExchange API from Emacs
- by cschol
I am trying to access the StackExchange API from Emacs' elisp:
(require 'url)
(require 'json)
(defvar url-http-end-of-headers)
(defun read-json ()
(interactive)
(with-current-buffer (url-retrieve-synchronously "http://api.stackoverflow.com/0.8/users/2386")
(goto-char url-http-end-of-headers)
(json-read)))
M-x read-json results in the following error: JSON readtable error.
Am I missing anything?