Accessing JSON metafields
Mage metafields are stored as JSON. In Liquid, you access the parsed data through the.value property:
Checking if metafields exist
Always check that a metafield exists before using it. This prevents errors on pages where the data may not be available:Iterating over arrays
Earning rules, rewards, and VIP tiers are arrays. Loop through them withfor: