{% if attr is string %} {% set attr = attr|json_decode %} {% endif %}