Skip to content

Instantly share code, notes, and snippets.

@kaosf
Created June 29, 2012 07:40
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 kaosf/3016510 to your computer and use it in GitHub Desktop.
Save kaosf/3016510 to your computer and use it in GitHub Desktop.
uri, net/http, multi_json memo ref: http://qiita.com/items/100c5da99fad8751231c
require 'uri'
require 'net/http'
require 'multi_json'
uri = URI.parse('http://exapmle.com/contents/1.json')
res = Net::HTTP.get_response(uri)
json = MultiJson.load(res.body, symbolize_keys: true)
p json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment