Ask Your Question

Revision history [back]

Serialise data to JSON in HOT

In a Heat template, I need to specify some data as a serialised JSON string, but the data source (e.g. the get_attr function) provides a dict or list. How can I serialise the dict within the template?