I have this...
{visibility=>10000, main=>{temp=>16.870001, humidity=>88, temp_min=>16.670000, temp_max=>17, pressure=>1022}, weather=>[{main=>Rain, id=>500, description=>light rain, icon=>10n}], coord=>{lat=>50.830002, lon=>-0.140000}, cod=>200, dt=>1439327967, sys=>{sunset=>1439321264, message=>0.012800, type=>1, sunrise=>1439268153, id=>5089, country=>GB}, base=>stations, wind=>{deg=>30, speed=>2.600000}, clouds=>{all=>92}, id=>2654710, name=>Brighton}
And can access for example the temp like this
w.temperature = data["main"]["temp"];
But how can I access the weather/description as this doesn't work
w.weather = data["weather"]["description"];
TIA!