Filters › json_encode

Table of Contents

← filters

The json_encode filter returns the JSON representation of a value:

{{ data|json_encode() }}

For this filter you have to install any json package (cjson, json) or configure aspect.config manually.