title: Assigning an Array Parsed With jq to Bash Script Array
body: <p>I parsed a json file with jq like this : </p>
  
  <pre><code># cat test.json | jq '.logs' | jq '.[]' | jq '._id' | jq -s
  </code></pre>
  
  <p>It returns an array like this : <code>[34,235,436,546,.....]</code></p>
  
  <p>Using bash script i described an array : </p>
  
  <pre><code># declare -a msgIds = ...
  </code></pre>
  
  <p>This array uses <code>()</code> instead of <code>[]</code> so when I pass the array given above to this array it won't work.</p>
  
  <p><code>([324,32,45..])</code> this causes problem. If i remove the <code>jq -s</code>, an array forms with only 1 member in it. </p>
  
  <p>Is there a way to solve this issue?</p>