Hi everyone,
I have a nested dictionary like this (inside my python flask file)
So I need to grab "blablabala" without knowing what will be the Key (A)
inside my Jinja template I've tried
I've tried then in the Jinja template
any ideas ?
I have a nested dictionary like this (inside my python flask file)
{"content":[{"A":"blablabala"},{"A":"blublublu"}]}listed as DICT here after
So I need to grab "blablabala" without knowing what will be the Key (A)
inside my Jinja template I've tried
{{ DICT["content"][0] }}but this of course return me the full nested dictionary
{"A": "blablabla"}
I've tried then in the Jinja template
{%- set extraction = list(DICT["content"][0].values()) %} {{ extraction[0] }}But this give me the following error
jinja2.exception.UndefinedError: 'list' is undefined

![[Image: NfRQr9R.jpg]](https://i.imgur.com/NfRQr9R.jpg)