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
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme