Skip to content

Instantly share code, notes, and snippets.

@cjgiridhar
Created August 26, 2012 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjgiridhar/3478428 to your computer and use it in GitHub Desktop.
Save cjgiridhar/3478428 to your computer and use it in GitHub Desktop.
Tornado - Escape - JSONClient
import tornado.httpclient
http = tornado.httpclient.HTTPClient()
response = http.fetch("http://localhost:8888/lang")
data = tornado.escape.json_decode(response.body)
print data['py'], data['js']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment