Hello,
I want to grab some data from a REST Api but it doesn’t work. So I’ve started testing the JSON string in the Template Editor like this:
{% set my_test_json = {
"items": [
{
"statistics": {
"test1": "73",
"test2": "0",
}
}
]
} %}
#{{ my_test_json.items[0].statistics.test1 }}
What i get is the error message
Error rendering template: UndefinedError: builtin_function_or_method object has no element 0
But the JSON access looks valid for me. What does builtin_function_or_method mean? Is items a blocked keyword, so I can’t use such a response?
Thanks in advance,
best regards,
Florian