title: How can I use jq to find all paths in a JSON object under which a value matches a given criteria?
body: <p>Is there a way I could use jq to find all paths that hold a value that matches a given criteria?</p>
  
  <p>For example, given the following JSON, I'd like to return all paths where the value of "age" is >35, regardless of the depth of the structure containing that field:</p>
  
  <pre><code>{  
    "springfield":{  
      "marge":{  
        "age":30
      },
      "homer":{  
        "age":40,
        "job":"xyz"
      }
    },
    "shelbyville":{  
      "zone1":{  
        "john":{  
          "age":10
        }
      },
      "zone2":{  
        "mark":{  
          "age":50
        }
      }
    },
    "homeless1":{  
      "age":25
    },
    "homeless2":{  
      "age":60
    }
  }
  </code></pre>
  
  <p>So the execution would yield something like:</p>
  
  <pre><code>[
    ["springfield", "homer"],
    ["shelbyville", "zone2", "mark"],
    ["homeless2"]
  ]
  </code></pre>