Created
March 21, 2012 17:08
-
-
Save lhanson/2149600 to your computer and use it in GitHub Desktop.
clojure.data.json error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use '[clojure.data.json :only (read-json json-str)]) | |
(require '[clj-http.client :as client]) | |
(def url "http://api.twitter.com/1/statuses/show/177093052035375104.json") | |
(read-json (client/get url)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This throws
It turns out that client/get returns a map with cookies, headers, status, body, etc. You need to pull out the body of the response thusly: