Mapper
Mapper renames keys on the JSON object it receives from the upstream node. Every key not named in a rule is passed through unchanged. Use it when an upstream API returns a field under one name and a downstream system expects another. You find it on the node picker’s Transform & data shelf.


| Field | Type | Default | Description |
|---|---|---|---|
Rules (rules) | list (required) | — | The list of rename rules; each renames a top-level key in the incoming data from one name to another. |
From (rules[].from) | string ✦ (optional) | — | |
To (rules[].to) | string ✦ (optional) | — |
Fields marked ✦ accept expressions.
Try this node — run it once against your own workspace, with your credentials, without building a flow first.
Behaviour
Section titled “Behaviour”Each rule is a from and to pair. When the incoming document has a
top-level key matching from, its value is re-keyed under to and the
original key is removed. A rule whose from key is absent from the input does
nothing, and renaming happens only at the top level: nested objects are
carried along as values, never traversed.
Rules run in the order they are listed, each one against the result of the
last, so renaming a to b and then b to c lands the original value
under c.
Both sides of a rule are expression-capable. Switch a side to expression mode
(the {x} toggle) to compute the key name at runtime, for example renaming
whichever key the flow’s start payload nominates:
{{ $start->idFieldName }}Literal renames are almost always clearer; reach for expression mode only when the key name genuinely varies per run.
Output
Section titled “Output”The node emits the incoming document with the renames applied, as JSON.
Example
Section titled “Example”The Mapper template in the gallery (Automation → Templates) receives this document from an Injector:
{ "first_name": "Bob", "last_name": "Jansen", "email_addr": "bob@example.com", "age": 34 }and applies three rules:
| from | to |
|---|---|
first_name |
firstName |
last_name |
lastName |
email_addr |
email |
The output is firstName, lastName, and email renamed, with age passed
through untouched.
Limitations
Section titled “Limitations”- A key whose value is
nullis treated as absent, so the rule does not fire and the value stays under its original name. An upstream API that returnsnullfor an empty field therefore leaks that field’s old name downstream. Fill the gap in a Transformer when the shape has to be exact. - Renames are shallow: a rule cannot target
customer.emailinside a nested object. Restructure nested data with a Transformer instead. - A rule only renames; it cannot compose a new value from several fields. That is also Transformer territory.
Related
Section titled “Related”- Transformer rewrites the whole document with full expression support.
- Text Expression extracts or computes a single value.
- How-to: Use expressions covers expression mode on the rule fields.