Created
March 9, 2015 00:01
-
-
Save dladowitz/984c37f280bd9f61cd99 to your computer and use it in GitHub Desktop.
This file contains 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
require 'json' | |
require 'rest-client' | |
#get a big block of json | |
github_json = RestClient.get('https://api.github.com/users/rails/repos') | |
#format the json for ruby to read | |
ghub_json = JSON.load(github_json) | |
#loop over all the repos in the formatted json | |
ghub_json.each do |repo| | |
puts repo['created_at'] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment