json
JSON serializes the value to a JSON string.
JSON serializes the value to a JSON string. Pass 'pretty' as a parameter to produce indented output.
Input
any
Parameters
| # | Type | Required |
|---|---|---|
| 0 | string | no |
Returns
string
Examples
{{ data | json }}
{{ config | json:'pretty' }}How is this guide?