Skip to content

Instantly share code, notes, and snippets.

@jmoiron
Created July 23, 2014 16:02
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 jmoiron/06bee8ee5d3cbeacc9d3 to your computer and use it in GitHub Desktop.
Save jmoiron/06bee8ee5d3cbeacc9d3 to your computer and use it in GitHub Desktop.
# github search for "json.loads(" => 210,000 matches
feed = urllib2.urlopen("http://example.com/api.json").read()
data = json.loads(feed)
# github search for "json.load(" => 58,000 matches
data = json.load(urllib2.urlopen("http://example.com/api.json"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment