Syntax
- Liquid
Description
Theproperties metafield contains custom customer properties and attributes collected through forms, surveys, or API calls. This is a JSON object where keys are property handles and values are the customer’s responses.
The properties metafield contains JSON data that must be parsed using Liquid’s
parse_json filter before accessing individual properties.Properties
Type:JSON Object
Namespace: lantern
Return Values
| Scenario | Value | Type |
|---|---|---|
| Customer has properties | Properties object | JSON Object |
| Customer has no properties | {} (empty object) | JSON Object |
| Logged out | null | null |
Object Structure
The properties object is a key-value store where each key represents a property handle.- Keys: property handles such as
favorite_category,vip_status, orbirthday - Values:
string | number | booleandepending on how the property was defined