"CongnitiveSearchResult":{
"value":[
{
"DisplayTags":[
"Cross-Function",
"Retail",
"Oil & Gas",
"Manufacturing"
]
}
I need to calculate the length of displaytags
in each response, such as response[o]
having a length of 3
, and I have to repeat this process for every response. This information needs to be displayed and looped through in HTML within each div. The issue arises when the length is not consistent for each response - for example, the length of the display tags in the '0th' response shows as 1 but the actual length is 3, causing confusion. It's important to note that sometimes displaytags
may be empty or null.