Some target systems do not use a flat schema. Mapping rule language provides operators on the target side that construct nested data. The following publication rule builds an array of email objects:
let emails = [{"address": mail, "primary": true, "type": "work"}, {"address": idautoPersonHomeEmail, "primary": false, "type": "home"}]This syntax is similar to JavaScript Object Notation (JSON). Content authored in JSON translates readily to this rule format.