Rules formatting and webhook

Trying to send JSON data to a webhook. Is there a way to properly format the output for valid JSON?

My payload:
[{
“id”:"${CONTENT_ID}",
“title”:"${CONTENT_DATA.Title.iv}",
“body”: “${CONTENT_DATA.body.iv}”
}]

My output:

You can use something like:

${EVENT_USER.NAME | Escape}

There are a few of these operators

  • upper
  • lower
  • escape
  • slugify
  • trim
  • timestamp (in case your input is a ISO8601 date-time)
  • timestamp_sec (in case your input is a ISO8601 date-time)
1 Like

very nice! that worked perfectly! I noticed that if the payload is empty, you automatically escape everything.

1 Like