title: Remove blank strings from array with jq?
body: <p>How does one remove blank string items from an array in jq?</p>
  
  <p>This is my best guess, but it doesn't appear to work:</p>
  
  <p><strong>Attempt</strong></p>
  
  <pre><code>echo '["bob","","tim",""]' | jq '[ . [] | if length &gt; 0 then . end ]'
  </code></pre>
  
  <p><strong>Desired output:</strong></p>
  
  <pre><code>["bob", "tim"]
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>. [] | if length &gt; 0 then . end                            
  jq: error: Possibly unterminated 'if' statement at &lt;top-level&gt;, line 1:
  . [] | if length &gt; 0 then . end       
  jq: 2 compile errors
  </code></pre>