You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a huge json string in my template and I am using
{{ json_decode(json_string)["name"] }}
similarly to render other attributes I am calling json_decode everytime. Is there a way I can assign the output of the json_decode operation to a variable?
{% data_dict = json_decode(json_string) %}
I get ParseError: unknown operator: 'data_dict'.
Any work arounds?
The text was updated successfully, but these errors were encountered:
I have a huge json string in my template and I am using
{{ json_decode(json_string)["name"] }}
similarly to render other attributes I am calling json_decode everytime. Is there a way I can assign the output of the json_decode operation to a variable?
{% data_dict = json_decode(json_string) %}
I get ParseError: unknown operator: 'data_dict'.
Any work arounds?
The text was updated successfully, but these errors were encountered: