Skip to content

Instantly share code, notes, and snippets.

@watert
Created August 19, 2013 09:49
Show Gist options
  • Select an option

  • Save watert/6267491 to your computer and use it in GitHub Desktop.

Select an option

Save watert/6267491 to your computer and use it in GitHub Desktop.
getJSON = (url,callback)->
require("http").get url,(res)->
res.on "data",(data)->
data = JSON.parse data.toString()
callback data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment