Skip to content

tojson

Collection Note

This module is part of the ansible.builtin collection. To install the collection, use:

ansible-galaxy collection install ansible.builtin

Synopsis

- Serialize an object to a string of JSON, and mark it safe to render in HTML.

  • This is the Jinja builtin filter plugin 'tojson'.
  • See: U(https://jinja.palletsprojects.com/en/stable/templates/#jinja-filters.tojson)