data object.
Variable syntax
Iterating over arrays
Use JSONNETfor loops to repeat blocks for each item in an array:
Conditional logic
Useif/then/else for conditional content:
String formatting
JSONNET supports Python-style string interpolation with%:
+:
Slack Block Kit examples
Design visually in the Slack Block Kit Builder, then adapt the JSON into JSONNET by replacing hardcoded values withdata.key references.
Simple text notification
Simple text notification

Anomaly alert with image
Anomaly alert with image

Batched task digest
Batched task digest

MS Teams Adaptive Card examples
Design visually in the Adaptive Cards Designer, then adapt the JSON into JSONNET.Dynamic list with for loop
Dynamic list with for loop
Debugging
- Preview not loading - ensure all
data.keyvariables 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 ofdata.key. - Slack message not rendering - make sure your template is wrapped in
{"blocks": [...]}. A bare array ([...]) is not valid for the SuprSend Slack JSONNET editor. - 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.
