Skip to main content

Accessors

Accessors are used to specify the location of data values in JSON objects; they are strings which describe an attribute path to a value nested within an object. They are used in Avoidance Policies, scaleAttributes, and participantFilters.

// given the follwoing accessor...
const accessor = 'individualParticipants.person.nationalityCode';

// an array of nationalityCodes can be accessed from a PAIR participant
const participant = {
individualParticipants: [{ person: { nationalityCode } }],
participantType: PAIR,
};

In the Live Editor below, the accessor "person.sex" is used to target FEMALE participants. Change the accessor value in the participantFilters to MALE or uncomment the person.nationalityCode filter to see the Participants Count change.

Live Editor
Result
Loading...