title: jq - returns plain list instead of json array
body: <p>The below example returns a plain list instead of a JSON array for this sample JSON</p>
  <pre><code>{
    &quot;items&quot;: [
      {
        &quot;id&quot;: 1,
        &quot;name&quot;: &quot;one&quot;
      },
      {
        &quot;id&quot;: 2,
        &quot;name&quot;: &quot;two&quot;
      },
      {
        &quot;id&quot;: 3,
        &quot;name&quot;: &quot;tre&quot;
      }
    ]
  }
  </code></pre>
  <p>This is the output I want:</p>
  <pre><code>[1,2,3]
  </code></pre>
  <p>But I get</p>
  <pre><code>1
  2
  3
  </code></pre>
  <p>with</p>
  <pre><code>[.items[] ] [] | [.id, .name]  | .[0]
  </code></pre>
  <p>Demo:   <a href="https://jqplay.org/s/YPG4I9BMDn" rel="nofollow noreferrer">https://jqplay.org/s/YPG4I9BMDn</a></p>