Communities for your favorite technologies. Explore all Collectives
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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!
str.hourly[2].rain["1h"]
Simply: str.hourly[2]["rain"]["1h"]; Since rain is an object has 1h property
str.hourly[2]["rain"]["1h"]
rain
1h
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
str.hourly[2].rain["1h"]