class Stacker::Runtime::Filter::Json

Overview

Dump an object to JSON, without character escaping.

{% set json = {"foo": "bar"} | json %}

The output is pretty printed, indented with 2 spaces unless another indent width is given: {"foo": "bar"} | json renders as {, "foo": "bar", } on three lines.

Defined in:

runtime/filter/json.cr