Properties
Properties access values from objects in your data. They are wrapped in double underscores: __name__.
Basic Properties
A property reads a field from a selector’s object:
__age__ → object.age__email__ → object.email__first_name__ → object.first_nameLinking Properties to Selectors
Use of to specify which object a property belongs to:
__age__ of **Person**__email__ of **User**The word the can be added for readability — it’s ignored by the parser:
the __age__ of the **Person**Interactive Example
Policy Rule
Test Data (JSON)
Nested Property Access
For nested JSON structures, you can chain properties using of:
the __city__ of the __address__ of the **Person**or you can nest the selector
the __city__ of the **address** of the **Person**This reads data.Person.address.city.
Interactive Example
Policy Rule
Test Data (JSON)
Properties with Spaces
Property names can contain spaces:
__date of birth____first name____postal code__These map to camelCase or snake_case JSON keys automatically. The engine handles case conversion between naming conventions.
Property Names and JSON Keys
The engine automatically converts between naming conventions:
| Property | Matches JSON key |
|---|---|
__first_name__ | first_name or firstName |
__date of birth__ | date of birth, dateOfBirth, date_of_birth |
__postCode__ | postCode or post_code |