How do I map my form data to send an array of json object:
Referral__LeadId : ‘223344’
Referral__Communities__CommunityNumber : ‘123’
Referral__Communities__CommunityNumber : ‘234’
Expected json:
{
"Referral": {
"LeadId": "223344",
"Communities": >{
"CommunityNumber": "123"
},
{
"CommunityNumber": "234"
}
]
}
}