I have a HTTP GET method call to our service desk, we pass the email address via the URL and get the response (below). I'm after getting the ID into a variable after parsing the JSON but continue to run into problems. It will only ever return 1 result but keeps putting in a apply to each. Any help would be greatly appreciated.
{
"status": "success",
"message": null,
"count": 1,
"data": [
{
"id": 442,
"brand_id": 1,
"role": 0,
"firstname": "firstname",
"lastname": "secondname",
"email": "user@ddomain.org",
"confirmed": 0,
"active": 1,
"organisation_id": null,
"organisation_access_level": null,
"organisation_notifications": null,
"country": null,
"language_code": null,
"timezone": null,
"avatar": "R0lGODlhQABAANUAAAAAAP////7+/v39/fz8/Pv7+/r6+vn5+fj4+Pf39/b29vX19fT09PPz8/Ly8vHx8fDw8O/v7+7u7u3t7ezs7Orq6unp6ejo6Ofn5+bm5uXl5eTk5OPj4+Li4uHh4eDg4N/f393d3dzc3Nvb29ra2tnZ2djY2NfX19bW1tXV1dTU1NPT09LS0tHR0dDQ0M/Pz87Ozs3Nzcz",
"template_mode": null,
"notes": "",
"twofa_enabled": 0,
"twofa_secret": null,
"twofa_token": null,
"twitter_id": null,
"twitter_handle": null,
"facebook_id": null,
"last_active_at": 1698322691,
"created_at": 1642414443,
"updated_at": 1694421977,
"formatted_name": "full name",
"avatar_url": "url",
"organisation": null,
"phonenumbers": [],
"customfields": [],
"groups": []
}
]
}