Skip to main content
Finds every path that matches a source pattern and writes a value at a matching destination path for each one. The original data stays in place; this feature adds the new destination entries alongside it. Use it to build a new structure out of a repeating one, for example creating an entry under a new key for every item in a list. Each * in the source becomes a numbered capture, so the destination and value can place each result in its own spot.

Fields

Sample data

FieldValue
Sourceitems.*
Destinationlines.$1.status
Valuepending
For each item, $1 holds the item’s position, so the feature writes a status of pending under a matching entry in lines. Input:
{
    "items": [
        { "sku": "A1" },
        { "sku": "B2" }
    ]
}
Output:
{
    "items": [
        { "sku": "A1" },
        { "sku": "B2" }
    ],
    "lines": [
        { "status": "pending" },
        { "status": "pending" }
    ]
}