#!/usr/local/bin/ruby require 'net/http' require 'uri' require 'json' url = "http://weather.livedoor.com/forecast/webservice/json/v1?city=130010" uri = URI.parse(url) json = Net::HTTP.get(uri) result = JSON.parse(json) puts result hash = JSON.load(result) puts hash