JSONNET syntax reference for Slack Block Kit and MS Teams Adaptive Card templates in SuprSend — variables, conditionals, arrays, and batched events.
JSONNET is a data templating language that extends JSON with variables, conditionals, and functions. SuprSend uses JSONNET as the templating language for rich Slack Block Kit and MS Teams Adaptive Card templates.All trigger payload data, recipient properties, tenant properties, and batched event data are available under the data object.
The {{variable}} Handlebars syntax does not work in JSONNET editors. Use data.key syntax only. Similarly, the Adaptive Card ${variable} syntax is not supported — use data.key instead.
Preview not loading — ensure all data.key variables have values in the Variables panel. Missing mock data causes render errors.
Syntax error in preview — check for missing commas, unmatched brackets, or using {{}} instead of data.key.
Slack silently drops blocks — validate your output in the Block Kit Builder before committing.
Teams renders differently than designer — always test in an actual Teams chat. The Adaptive Cards Designer is an approximation, not exact.
AI prompt — debug JSONNET:“Fix this JSONNET error from the SuprSend editor. Error: [paste error]. Code: [paste JSONNET]. Variables are accessed as data.key or data[‘$special_key’].”