Skip to content

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_name

Linking 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:

PropertyMatches JSON key
__first_name__first_name or firstName
__date of birth__date of birth, dateOfBirth, date_of_birth
__postCode__postCode or post_code