title: Join a list of json values using jq
body: <p>I'm attempting to reduce this list of names to a single line of text.</p>
  <p>I have JSON like this:</p>
  <pre><code>{
      &quot;speakers&quot;: [
          {
              &quot;firstName&quot;: &quot;Abe&quot;,
              &quot;lastName&quot;: &quot;Abraham&quot;
          },
          {
              &quot;firstName&quot;: &quot;Max&quot;,
              &quot;lastName&quot;: &quot;Miller&quot;
          }
      ]
  }
  </code></pre>
  <p>Expected output:</p>
  <pre><code>Abe Abraham and Max Miller
  </code></pre>
  <p>One of the many attempts I've made is this:</p>
  <pre><code>jq -r '.speakers[] | [&quot;\(.firstName) \(.lastName)&quot;] | join(&quot; and &quot;)'
  </code></pre>
  <p>The results are printed out on separate lines like this:</p>
  <pre><code>Abe Abraham
  Max Miller
  </code></pre>
  <p>I think the <code>join</code> command is just joining the single-element array piped to it (one name per array). How can I get the full list of names passed to <code>join</code> as a single array, so I get the expected output shown above?</p>