I'm trying to read the below highlighted value:
by reading
str.hourly[2]["rain.1h"]
but getting Undefined error. What is the correct way to access that value?
Thanks in advance!
CodePudding user response:
Simply: str.hourly[2]["rain"]["1h"]
; Since rain
is an object has 1h
property