Fields
Pattern
Required. The dot-notated source path of the data to move. Use* to match all items in an array. Each * becomes a numbered capture group that can be referenced in the replacement as $1, $2, etc.
product.name— moves a single value.products.*.name— moves thenameof every product;$1holds the array index.products.*.categories.*— two wildcards;$1is the product index,$2is the category index.
Replacement
Required. The dot-notated destination path where the data is written. Use$1, $2, etc. to reference capture groups from * in the source pattern.
product_name— fixed destination.product_names.$1— writes each moved value to its own index.
Conditions
Optional. Only move the data when a condition is met.Sample data
Pattern:product.name
Replacement: product_name
Input:
Pattern:
products.*.name
Replacement: product_names.$1
Input:
Pattern:
products.*.categories.*
Replacement: categories.$2
Input: