JSON Array Segmentation
Filter Waymore segments on nested JSON arrays and object properties.
Segment on nested JSON in attributes and event properties using bracket notation.
Syntax
| Expression | Meaning |
|---|---|
shipping_addresses[0].city | First item's city |
shipping_addresses[].city | Any item's city |
shipping_addresses[] | Any property in any object |
favorite_foods[] equals pizza | Array contains value |
Array of values vs objects
For a simple array like favorite_foods: ["pizza", "fries"], the equals operator behaves like contains — favorite_foods[] equals pizza matches.
For arrays of objects, specify the property path: items[].sku equals ABC123.
Special characters
Escape regex characters in event names and values with \ when using pattern matchers (*, |, +).
Related

