#!/usr/local/bin/ruby # coding: utf-8 require 'net/http' require 'uri' require 'json' require "rest_client" url = "http://weather.livedoor.com/forecast/webservice/json/v1?city=130010" response = RestClient.get url data = JSON.parse(response) p data