Please see attached program that generates the payload. Everything seems to be working fine except the values for areVacanciesAvailable in the SessionGroups array need to be bound to the values from the "vacancies" list. so the sessiongroup show look like this :
"SessionAgeGroups":[
{
"ageGroup":"OVPRAG",
"areVacanciesAvailable": true (this value needs to be from the vacancies list)
}
]
Please see the attached json that the program needs to generate.
Also included is the program that generates the json.