Hello,
Thanks for your answer. I tried what you said but it still gives me the NULL error. So here is sample data that I'm working with:
{
"statusCode": 200,
"headers": {
"Date": "Wed, 22 Nov 2023 08:11:22 GMT",
"Transfer-Encoding": "chunked",
"Connection": "keep-alive",
"Server": "nginx",
"x-server-instance": "jsms-frontend-57f5d98894-pswv2",
"Access-Control-Allow-Origin": "*",
"Cache-Control": "must-revalidate, max-age=0, private",
"Set-Cookie": "hash=7e4e664974647242c88337758aa4858a; expires=Thu, 21-Nov-2024 08:11:22 GMT; Max-Age=31536000; path=/; domain=jamfcloud.com; secure; HttpOnly",
"X-Frame-Options": "DENY",
"Strict-Transport-Security": "max-age=63072000; includeSubDomains;",
"Content-Type": "application/json; charset=utf-8"
},
"body": {
"code": 200,
"class": {
"uuid": "eeaf298f-6b41-4bdb-a1cb-6bc10fdafd0d",
"name": "6A",
"description": "Imported from Apple School Manager",
"locationId": 13,
"source": "MANUAL",
"image": "",
"classAsmIdentifier": "",
"userGroupId": 37,
"studentCount": 8,
"students": [
{
"id": 299,
"name": "Hanne Beek",
"email": "hanne.beek@lln.test.be",
"username": "hanne.beek",
"firstName": "Hanne",
"lastName": "Beek",
"photo": "https://test.jamfcloud.com/application/views/default/assets/image/avatar/avatar.png"
},
{
"id": 300,
"name": "Paulien Deer",
"email": "paulien.deer@lln.test.be",
"username": "paulien.deer",
"firstName": "Paulien",
"lastName": "Deer",
"photo": "https://test.jamfcloud.com/application/views/default/assets/image/avatar/avatar.png"
},
{
"id": 305,
"name": "Ceriel Verley",
"email": "ceriel.verley@lln.test.be",
"username": "ceriel.verley",
"firstName": "Ceriel",
"lastName": "Verley",
"photo": "https://test.jamfcloud.com/application/views/default/assets/image/avatar/avatar.png"
},
{
"id": 306,
"name": "Rob Hoog",
"email": "robin.hoog@lln.test.be",
"username": "robin.hoogewijs",
"firstName": "Rob",
"lastName": "Hoog",
"photo": "https://test.jamfcloud.com/application/views/default/assets/image/avatar/avatar.png"
},
{
"id": 307,
"name": "Milano Ver",
"email": "milano.ver@lln.test.be",
"username": "milano.ver",
"firstName": "Milano",
"lastName": "Ver",
"photo": "https://test.jamfcloud.com/application/views/default/assets/image/avatar/avatar.png"
},
{
"id": 310,
"name": "Rob Dele",
"email": "rob.dele@lln.test.be",
"username": "rob.dele",
"firstName": "Rob",
"lastName": "Dele",
"photo": "https://test.jamfcloud.com/application/views/default/assets/image/avatar/avatar.png"
},
{
"id": 311,
"name": "Yar Din",
"email": "yar.din@lln.test.be",
"username": "yar.din",
"firstName": "Yar",
"lastName": "Din",
"photo": "https://test.jamfcloud.com/application/views/default/assets/image/avatar/avatar.png"
},
{
"id": 312,
"name": "Mat Van",
"email": "mat.van@lln.test.be",
"username": "mat.van",
"firstName": "Mat",
"lastName": "Van",
"photo": "https://test.jamfcloud.com/application/views/default/assets/image/avatar/avatar.png"
}
],
"teacherCount": 2,
"teachers": [
{
"id": 133,
"name": "Sofie De Beer",
"email": "sofie.debeer@testsample.be",
"username": "sofie.debeer",
"firstName": "Sofie",
"lastName": "De Beer",
"photo": "https://test.jamfcloud.com/application/views/default/assets/image/avatar/avatar.png"
},
{
"id": 134,
"name": "Ines Lamp",
"email": "ines.lamp@testsample.be",
"username": "ines.lamp",
"firstName": "Ines",
"lastName": "lamp",
"photo": "https://test.jamfcloud.com/application/views/default/assets/image/avatar/avatar.png"
}
],
"deviceGroupId": null,
"deviceCount": 0,
"passcodeLockGracePeriod": {
"hours": 0,
"minutes": 1,
"raw": 60
},
"wallpaperId": null
}
}
}
Thanks a lot for your assistance. Greatly appreciated!