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

ExpressionMeaning
shipping_addresses[0].cityFirst item's city
shipping_addresses[].cityAny item's city
shipping_addresses[]Any property in any object
favorite_foods[] equals pizzaArray contains value

Array of values vs objects

For a simple array like favorite_foods: ["pizza", "fries"], the equals operator behaves like containsfavorite_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

Automated segmentation · Events & attributes