[
  {
    "operation": "modify-overwrite-beta",
    "spec": {
      "*": "=recursivelySquashNulls"
    }
  },
  {
    "operation": "modify-overwrite-beta",
    "spec": {
      "payload": {
        "recId": "=split('\\.',@(1,recId))"
      }
    }
  },
  {
    "operation": "modify-overwrite-beta",
    "spec": {
      "payload": {
        "Id": "=join('.', @(1,recId))"
      }
    }
  },
  {
    "operation": "default",
    "spec": {
      "payload": {
        "AddressCountry": "val"
      }
    }
  },
  {
    "operation": "shift",
    "spec": {
      "payload": {
        "recId": {
          "2": {
            "PRINT": { "#MailingAddress": "communicationType" },
            "SMS": {
              "#Mobile": "communicationType",
              "@(3,SmsIddPrefixPhone)": "iddPrefixPhone",
              "@(3,Sms_D_1)": "phoneNo"
            },
            "EMAIL": {
              "#Email": "communicationType",
              "@(3,Email_D_1)": "electronicAddress"
            },
            "SWIFT": {
              "#Swift": "communicationType",
              "@(3,DeliveryAddress)": "electronicAddress"
            },
            "*": {
              "#null": "communicationType"
            }
          },
          "3": {
            "1": {
              "#true": "primary"
            }
          }
        },
        "AddressTyp": "addressType",
        "AddressPurpose": "usePurpose",
        "AddressValidatedBy": "validatedBy",
        "Department": "department",
        "SubDepartment": "subDepartment",
        "FlatNumber": "flatNumber",
        "BuildingName": "buildingName",
        "BuildingNumber": "buildingNumber",
        "Floor": "floor",
        "ARRAY_StreetAddr": {
          "*": {
            "StreetAddr": "streetName"
          }
        },
        "TownLocationName": "landmark",
        "ARRAY_TownCountry": {
          "*": {
            "TownCountry": "town"
          }
        },
        "AddressCountry": {
          "val": {
            "@(3,payload)": {
              "ARRAY_Country": {
                "*": { "Country": "countryCode" }
              }
            }
          },
          "*": { "@(2,AddressCountry)": "countryCode" }
        },
        "DistrictName": "district",
        "CountrySubdivision": "countrySubdivision",
        "ARRAY_Address": {
          "*": {
            "SUB_ARRAY_Address": {
              "*": {
                "Address": "addressFreeFormat.[&3].addressLine"
              }
            }
          }
        },
        "#Transact": "externalReference.[0].extRefSource",
        "Id": "externalReference.[0].extRefKey",
        "PoBoxNumber": "postBoxNumber",
        "ARRAY_PostCode": {
          "*": {
            "PostCode": "postalOrZipCode"
          }
        }
      }
    }
  }
]
