Skip to main content
Applies another accessor to each child item matching the supplied pattern.

Fields

Accessor

The base accessor that provides the parent data to access children from.

Pattern

Optional. Dot-notated pattern to filter which children to access. Use * to match all items in an array.
  • Leave empty to access all children.
  • Use products.* to access every product.
  • Use products.*.name to access the name of every product.
Each * becomes a numbered capture group ($1, $2, …) usable in the replacement field.

Replacement

Optional. Rewrites the matched paths. Use $1, $2, etc. to reference capture groups from * in the pattern.

Keys

Optional list of keys to restrict which keys are returned from each matched item. Leave empty to return all keys.

Sample data

Pattern: products.*.name Replacement: product_names.$1 Input:
{
    "products": [
        { "name": "example", "sku": "A1" },
        { "name": "example2", "sku": "B2" }
    ]
}
Output:
{
    "product_names": {
        "0": "example",
        "1": "example2"
    }
}