Building Nested Objects for Target Systems - RapidIdentity Platform Documentation

RapidIdentity Platform Documentation

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US

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.