i'm getting json response forecast.io api with
json.parse(open("https://api.forecast.io/forecast/api-key/latitude,longitude").read) and looks this
{"latitude"=>58.5942, "longitude"=>16.1826, "timezone"=>"europe/stockholm", "offset"=>2, "currently"=>{ "time"=>1367829429, "summary"=>"clear", "icon"=>"clear-day", "precipintensity"=>0, "temperature"=>59.04, "dewpoint"=>41.6, "windspeed"=>11.49, "windbearing"=>224, "cloudcover"=>0.08, "humidity"=>0.53, "pressure"=>1022.88, "visibility"=>6.21, "ozone"=>319.4 } i'm new json not regular json right? should view in script tags?
thanks.
use particular json keymap want in call, , return in json request callback function. believe resolve problem.
Comments
Post a Comment