Skip to main content

toJSON

The value encoded as indented JSON text

toJSON(x: any) -> string

Arguments​

NameType
xany

Example​

{{ toJSON({"id": 7}) }}

Returns the JSON text, indented over several lines.