[SOLVED] Help needed with JSON template sensor and json parsing

hey guys,

I am trying to parse a json string but if the name is a digit I am failing.

The json is at the end of the post!

This works:
{{ my_test_json.data.smart_results[0].attrs }}

This is not working:
{{ my_test_json.data.smart_results[0].attrs.5.raw_value }}
it gives me: UndefinedError: dict object has no element 5

Thank you for your help!


found the solution here: Template with json and numeric attribute