Accessing StackExchange API from Emacs

Posted by cschol on Stack Overflow See other posts from Stack Overflow or by cschol
Published on 2010-06-10T03:02:34Z Indexed on 2010/06/10 3:13 UTC
Read the original article Hit count: 379

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about emacs

Related posts about elisp