{{ | json_decode }} – JSON Decode

Decodes a JSON string and converts it to an array.

Usage:

{% set dog = '{"name":"Lucy","color":"black"}' | json_decode %}

Result usage:

{{ dog.name }}

Result:

Lucy

What are your feelings

One response to “{{ | json_decode }} – JSON Decode”

Leave a Reply

Updated on January 9, 2025