After making a request to the server, I received the following response:
{
"statusCode": 200,
"body": "{\"Errors\":\"\",\"Message\":\"\",\"Output\":\"\",\"TokenID\":\"F106457749C\",\"OrgID\":0,\"OutputObject\":{\"Details\":{\"CatalogDetail\":[{\"CatalogID\":74,\"CategoryID\":22,\"ShortCatalogName\":\"Email Forwarding\",\"CatalogName\":\"Email Forwarding\",\"Description\":\"Use this catalog for email forwarding \",\"IsVendor\":false,\"IsPackage\":false,\"AncestorParent_CategoryID\":58,\"IsEntitled\":0,\"CategoryName\":\"Email\",\"ServiceCatalogBGColor\":\"\"}],\"BaseUrl\":\"https://serviceimg-attachments\"}}}",
"headers": {
"cache-control": "private",
"content-type": "application/octet-stream",
"server": "Microsoft-IIS/8.5",
"set-cookie": [
"ASP.NET_SessionId=m0jbtyi12mzefkkyh3xd4i0m; path=/; HttpOnly",
".ASPXAUTH=41C6BC3E87DBF106457749C; path=/"
],
"x-aspnet-version": "4.0.30319",
"x-powered-by": "ASP.NET",
"date": "Mon, 15 Oct 2018 17:51:09 GMT",
"connection": "close",
"content-length": "779"
}
}
I am attempting to parse the string response.body in order to retrieve the array
response.body.OutputObject.Details.CatalogDetail
. However, I am encountering an issue where Details is undefined
. Could someone provide guidance on how to access the CatalogDetail Array?
Thank you, Arul