title: How to check if element exists in array with jq
body: <p>I have an array and I need to check if elements exists in that array or to get that element from the array using 
  jq, <strong>fruit.json</strong>:</p>
  
  <pre><code>{
      "fruit": [
          "apple", 
          "orange",
          "pomegranate",
          "apricot",
          "mango"
      ]
  }
  
  
  cat fruit.json | jq '.fruit .apple' 
  </code></pre>
  
  <p>does not work</p>