Modifier
Modifiers transform data on the fly within a flow. Apply a JSONata or JavaScript expression to change the structure or value of an output before it reaches the next function, a database, the frontend, or a subsequent extension node (such as another modifier or a filter).
To add a modifier:
Click the + icon on the right side of a function output, filter, or existing modifier.
Select Modifier from the list.
Click the new modifier node (Click to edit...) to open the code editor and write your expression.
A modifier uses either JSONata or a JavaScript expression. Switch between types by right-clicking the modifier and selecting JSONata or Expression. Adjust the default type in the App Builder settings.
Click the modifier icon on the left to evaluate the modifier manually during development. The last result appears below the expression. Right-click also lets you add a comment to the modifier or delete it.

Need help writing modifiers?
Read how to use AI for modifiers to generate JSONata or JavaScript logic with your favorite chatbot.
JSONata
JSONata is a query and transformation language designed for JSON data. It is the preferred method for structural changes, filtering, and simple math. For a complete guide, see the official JSONata documentation.
Reference: Use the
$sign to refer to the value from the preceding output.Implicit arguments: JSONata modifiers automatically process the incoming data if the parentheses are left empty. For example,
$uppercase()is equivalent to$uppercase($).
JSONata examples
JavaScript expressions
This modifier type accepts any standard JavaScript expression that evaluates to a new value. Reference the reserved variable x to access the preceding data output. For more information, see the MDN documentation on JavaScript expressions and operators.
JavaScript expression examples
Using AI for modifiers
Use AI chatbots (ChatGPT, Claude, Gemini) to generate or optimize your modifiers. This helps especially with complex transformations where you need to reshape large JSON objects on the fly.
For best results, copy this article as context for the AI. Use the Copy button at the top of the page or the Open in ChatGPT / Open in Claude buttons in the top navigation bar.
Recommended AI prompt
Alternatively, copy and paste this prompt into your AI so it understands the Heisenware environment and its variable references.
Last updated
Was this helpful?










