When I have a simple JSON like:
{
"name": "Tom",
"age": 20
}
Is there any JMESPath query to get age only when name is Tom?
The query should get 20 with the upper JSON.
But, if the name is not Tom like:
{
"name": "Bob",
"age": 31
}
The query should return null.