json

Works almost like capture. The difference is that it will convert captured string into a json. It means that after capturing json variable you can use its properties straightaway like so:

{% json dummy %}
    {
        "foo": "bar"
    }
{% endjson %}

{{ dummy.foo | log }}

Above code would log bar to the logs section.

Last updated