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
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
Very helpful.
Leave a Reply
You must be logged in to post a comment.