I have the problem to get the data out of the JSON response instance. I am using Cloud Workflows to get the information about the current state of my VMs. I am using the the .get functions that returns this long JSON that is high structured, e.g. launchResult is returned as:
{
"name":"some name",
"status":"some status",
"items":[
{
"key":"key1",
"property1":"xxxx",
"property2":"ccvdvdvd"
},
{
"key":"key2",
"property1":"xxxrerex",
"property2":"ccvdveedvd"
}
],
"kind":"some kind"
}
I can return for example "some status", by ${launchResult.status},
even key1, as {launchResult.items[0].key}.
The question is: How can I do sth like launchResult.items["key" == "key1"].property1? I mean I want to return the property1 from the item based on the key.