{
“result”: {
“parent”: “”,
“made_sla”: “true”,
“watch_list”: “”,
“sn_esign_document”: “”,
“access_requested_for”: {
“link”: “https://service-now.com/api/now/system_user/9b211591db”,
“value”: “123”
},
“upon_reject”: “cancel”,
“system_updated_on”: “2023-07-14 20:18:27”,
“task_effective_number”: “AC677”,
“approval_history”: “”,
“access_requested_for”: {
“link”: “https://service-now.com/api/now/system_user/9b211591”,
“value”: “456”
},
“select_role”: “37bb9”,
“skills”: “”,
“number”: “ACR0033677”,
“system_updated_by”: “vby01”,
“opened_by”: {
“link”: “https://service-now.com/api/now/system_user/aa562d701”,
“value”: “aa562d7014c5144b06a”
},
“user_input”: “”,
“system_created_on”: “2023-07-14 12:22:32”,
“system_domain”: {
“link”: “https://service-now.com/api/now/system_user_group/global”,
“value”: “global”
},
“state”: “2”,
“route_reason”: “”,
“system_created_by”: “test”,
“order”: “”,
“access_requested_for”: {
“link”: "https://service-now.com/api/now/system_user/9b211591d,
“value”: “789”
},
“closed_at”: “”,
“cmdb_ci”: “”,
“access_requested_for”: {
“link”: “https://service-now.com/api/now/system_user/9b211591db”,
“value”: “167”
},
“cmdb_ci_business_app”: “”,
“contract”: “”,
}
}
In the above API response how to get all “value” for access_requested_for i.e. I have to capture 123,456,789 and 167 from the response. Here it’s 4 but it can be n times, i.e. we don’t how many values we will get in response. API response is in JSON format.