title: Combine two JSON arrays in a single file using jq
body: <p>I have a JSON file with two arrays. I'd like to combine the arrays into a single array of objects, each of which contains an element from each of the original arrays.</p>
  <p>JSON input looks like this:</p>
  <pre><code>{
    &quot;en&quot;: [
      &quot;E1&quot;,
      &quot;E2&quot;,
      &quot;E3&quot;,
      &quot;E4&quot;
    ],
    &quot;fr&quot;: [
      &quot;F1&quot;,
      &quot;F2&quot;,
      &quot;F3&quot;,
      &quot;F4&quot;
    ]
  }
  </code></pre>
  <p>Desired output:</p>
  <pre><code>[
    { &quot;en&quot;:&quot;E1&quot;, &quot;fr&quot;:&quot;F1&quot;},
    { &quot;en&quot;:&quot;E2&quot;, &quot;fr&quot;:&quot;F2&quot;},
    { &quot;en&quot;:&quot;E3&quot;, &quot;fr&quot;:&quot;F3&quot;},
    { &quot;en&quot;:&quot;E4&quot;, &quot;fr&quot;:&quot;F4&quot;}
  ]
  </code></pre>
  <p>No matter what I try I can't tame jq into delivering this. The closest I have come is using the filter <code>. | {en:.en[],fr:.fr[]}</code> which gives me every possible pairing of the arrays as follows:</p>
  <pre><code>{
    &quot;en&quot;: &quot;E1&quot;,
    &quot;fr&quot;: &quot;F1&quot;
  }
  {
    &quot;en&quot;: &quot;E1&quot;,
    &quot;fr&quot;: &quot;F2&quot;
  }
  {
    &quot;en&quot;: &quot;E1&quot;,
    &quot;fr&quot;: &quot;F3&quot;
  }
  {
    &quot;en&quot;: &quot;E1&quot;,
    &quot;fr&quot;: &quot;F4&quot;
  }
  {
    &quot;en&quot;: &quot;E2&quot;,
    &quot;fr&quot;: &quot;F1&quot;
  }
  {
    &quot;en&quot;: &quot;E2&quot;,
    &quot;fr&quot;: &quot;F2&quot;
  }
  {
    &quot;en&quot;: &quot;E2&quot;,
    &quot;fr&quot;: &quot;F3&quot;
  }
  {
    &quot;en&quot;: &quot;E2&quot;,
    &quot;fr&quot;: &quot;F4&quot;
  }
  {
    &quot;en&quot;: &quot;E3&quot;,
    &quot;fr&quot;: &quot;F1&quot;
  }
  {
    &quot;en&quot;: &quot;E3&quot;,
    &quot;fr&quot;: &quot;F2&quot;
  }
  {
    &quot;en&quot;: &quot;E3&quot;,
    &quot;fr&quot;: &quot;F3&quot;
  }
  {
    &quot;en&quot;: &quot;E3&quot;,
    &quot;fr&quot;: &quot;F4&quot;
  }
  {
    &quot;en&quot;: &quot;E4&quot;,
    &quot;fr&quot;: &quot;F1&quot;
  }
  {
    &quot;en&quot;: &quot;E4&quot;,
    &quot;fr&quot;: &quot;F2&quot;
  }
  {
    &quot;en&quot;: &quot;E4&quot;,
    &quot;fr&quot;: &quot;F3&quot;
  }
  {
    &quot;en&quot;: &quot;E4&quot;,
    &quot;fr&quot;: &quot;F4&quot;
  }
  </code></pre>
  <p>How can I get it to pair the first elements of each array, the second elements, etc.</p>