title: How to combine the sequence of objects in jq into one object?
body: <p>I would like to convert the stream of objects:</p>
  
  <pre><code>{
    "a": "green",
    "b": "white"
  }
  {
    "a": "red",
    "c": "purple"
  }
  </code></pre>
  
  <p>into one object:</p>
  
  <pre><code>{
    "a": "red",
    "b": "white",
    "c": "purple"
  }
  </code></pre>
  
  <p>Also, how can I wrap the same sequence into an array?</p>
  
  <pre><code>[
      {
        "a": "green",
        "b": "white"
      },
      {
        "a": "red",
        "c": "purple"
      }
  ]
  </code></pre>
  
  <p>Sadly, the manual is seriously lacking in comprehensiveness, and googling doesn't find the answers either.</p>