title: jq command throws error "cannot iterate over string" when
body: <p>I am writing a bash script utilizing jq to filter out JSON entries given some bash variables and return some of the key values from each entry into a tab-delimited file. I think the first few lines of this command are okay, but the 4th line I think is causing the problem. I have tried piping each entry in line 4 to tostring but to no avail. </p>
  
  <pre><code>info=`cat $FILE | jq -r \
      ' .[] \
      | map(select(.host| contains(env.A))) \
      | [."ip.A",."ts",."ip.B"] \
      | @tsv'`
  </code></pre>
  
  <p>JSON example entry:</p>
  
  <pre><code>{
    "ts": "2019-06-19T00:00:00.000000Z",
    "ip.A": "0.0.0.0",
    "ip.B": "0.0.0.0",
    "host": "www.google.com",
  }
  </code></pre>
  
  <p>In these files, there are no brackets surrounding the entire text within the file.</p>
  
  <p>Error Given:</p>
  
  <pre><code>jq: error (at &lt;stdin&gt;:0): Cannot iterate over string ("2019-06-18...)
  </code></pre>
  
  <p>Do I need to handle ".ts" in some special way?</p>