0

I'm trying to read the below highlighted value:

enter image description here

by reading

str.hourly[2]["rain.1h"]

but getting Undefined error. What is the correct way to access that value?

Thanks in advance!

1
  • str.hourly[2].rain["1h"] Commented Sep 24, 2022 at 10:18

1 Answer 1

2

Simply: str.hourly[2]["rain"]["1h"]; Since rain is an object has 1h property

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.