So I have this rest call, which is returning this sample data.
var test = {
"id": "testtset",
"name": "sf-rg",
"tags": {
"Tag Set": "005",
"User Name": "Bond"
},
"properties": {
"provisioningState": "Succeeded"
}
},
{
"id": "365tset",
"name": "Test365",
"location": "us",
"properties": {
"provisioningState": "Succeeded"
}
}
console.log(test.tags["User Name"]);
If I run this it will give me an error.
My object contain values for user name but not for all ID's.
Let's say if I just have one json object console.log(test.tags["User Name"]);
this will work fine, But not for multiple data objects.
Does any one know how to resolve this issue?