Appearance
Extract Attribute Mutation ​
The Extract attribute mutation reads one attribute from a JSON object and returns it as text. Use it after Find object, or after Parse JSON on text that holds a single object.
Options ​
- Attribute: The attribute to read. Use dot paths for nested attributes, for example address.city, and [0] to pick an entry of a nested list, for example images[0].url.
A missing attribute gives an empty value. An attribute that holds a nested object or list comes back as compact JSON text. When the value is a list of objects instead of a single object, the attribute is read from the first object.
Example ​
The extra field size_chart holds this text:
json
[{ "size": "S", "chest": "86" }, { "size": "M", "chest": "92" }]Pick the extra field, add Parse JSON, then Find object with attribute size, condition equals and the value set to the product field size, then Extract attribute with attribute chest. A product with size M gets 92. A product with size XL matches no object, so it gets an empty value.