v10.13.0
Similar with json, but inspect allows cyclic structure. For the scope below:
1 | const foo = { |
Input
1 | {% foo | inspect %} |
Output
1 | {"bar":"BAR","foo":"[Circular]"} |
Formatting
An additional space argument can be specified for the indent width.
Input
1 | {{ foo | inspect: 4 }} |
Output
1 | { |