Skip to content

Instantly share code, notes, and snippets.

@maxweber
Created February 26, 2011 11:24
Show Gist options
  • Save maxweber/845123 to your computer and use it in GitHub Desktop.
Save maxweber/845123 to your computer and use it in GitHub Desktop.
Slurping something from the Facebook Graph API into a Clojure data structure
user> (use 'clojure.contrib.json)
nil
user> (read-json (slurp "https://graph.facebook.com/btaylor"))
{:id "220439",
:name "Bret Taylor",
:first_name "Bret",
:last_name "Taylor",
:link "http://www.facebook.com/btaylor",
:gender "male",
:locale "en_US"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment