How to parse a JSON element that begins with a numeric?

This has got to be easy… :wink:

How can I extract an element from JSON that begins with a numeric?

I can get as far as the rain ‘array’ using:
{{ my_json.hourly[3].rain }}

But as soon as I look at the element 1hr using:
{{ my_json.hourly[3].rain.1hr }}

I get this error:

{{ my_json.hourly[3].rain['1hr'] }}
1 Like

That doesn’t seem to work…

{{ my_json.hourly[3].rain['1h'] }}

The key is ‘1h’, not ‘1hr’

1 Like

Thanks :blush: