Grafana v10.0.4 on Windows 10
I have a column that contains a list of objects, like this:
[
{
"key1": "val1",
"key2": "val2",
"props": {
"key1": "val1"
}
},
{
"key1": "val1",
"key2": "val2",
"props": {
"key1": "val1"
}
}
]
This list has a variable lenght for each entry. When the list only has one element I have no problem while extracting the desired fields:
The problem comes when theres more than one element in that list. I need to access only to the last element, but since the lenght is variable I need something like this [-1].preferences.delivered_status
which do not works. Currenlty Im separating each list element in its own column. It also would be useful to access the desired field for each element, like this:
array.forEach(obj => {
obj.preferences.delivered_status
})