Filter keys by value using JMESPATH

39 Views Asked by At

I have the following json schema:

{
  "id1": "INACTIVE",
  "id2": "ACTIVE",
  "id3": "INACTIVE",
  "id4": "ACTIVE"
}

Using jmespath is it possible to write a query to get only the ids which have a value of ACTIVE like so:

["id2", "id4"]
0

There are 0 best solutions below