Does JMESPath have an 'in' like operator, that will be true if a key's value is present in an array of strings?
Given the following snippet of data, (assume the number of items is much larger, and I want to select a few)
[
{
"object": {
"metadata": {
"name": "item1"
}
},
"data": {}
},
{
"object": {
"metadata": {
"name": "item2"
}
},
"data": {}
},
{
"object": {
"metadata": {
"name": "item3"
}
},
"data": {}
}
]
Is there something that would allow me to select any object, whose metadata.name key's value is in the list ['item1', 'item2']?