Data Mapper is a YAML-based transformation language for constructing and manipulating JSON payloads. Within Data Mapper, you can also use DSL expressions for string manipulation, type conversion, and computed values.

Use Data Mapper when you need to:
Stick with Mustache for simple variable substitution where the JSON structure is static.
Both produce the same output for simple cases. Data Mapper is useful when you need array manipulation or conditional logic.
Scenario: Send a bulk update request with multiple items.
Input Data:
Data Mapper:
Output:
Scenario: Include a field only when a condition is met.
Input Data:
Data Mapper:
Output:
Scenario: Extract values from a nested API response.
Input Data (ServiceNow-style):
Data Mapper:
Output:
Scenario: Send only high-priority items to an API.
Input Data:
Data Mapper:
Output:
Scenario: Transform a Snowflake/SQL response into structured JSON.
Input Data:
Data Mapper:
Output:
Apply directly to field values:
Tip: Test with hardcoded values first, then add Data Mapper transformations one at a time.
Data Mapper uses YAML. Watch for:
"'literal string'":Wrong:
Correct:
If MAP() or FILTER() returns empty, check:
items path is correctKey difference: Data Mapper preserves types. Arrays stay as arrays, numbers stay as numbers. No need for $STRINGIFY_JSON() workarounds.