When defining the action templates for your event subscriptions, you can already use the following custom Freemarker extensions:
| Extension | Description | How to use |
|---|---|---|
{_formatter.json()} |
Serializes the entire payload to JSON format. | ${_formatter.json()} |
{_formatter.json(propertyName)} |
If the provided propertyName points to a key-value pair or an array, then their value will be JSON serialized. |
{ "name":"InputData metadata modified", "changes":${_formatter.json(changes)}, // Outputs the value of the "changes" property to json string} |
For details, refer to Event Service > Action examples.
