I'm trying to parse the below from JSON (using the JSON gem) in Ruby:
{
"daily": {
"summary":"Light rain today through Saturday, with temperatures rising to 88°F on Saturday.",
"icon":"rain",
"data":[
{
"time":1435464000,
"precipProbability":0.99
}
]
}
}
Currently what I have is this: forecast["daily"]["data"], but I want to get the precipProbability for time when it is 1435464000. Any suggestion on how to complete my current JSON parsing query?
forecast["daily"]["data"].first['precipProbability']