title: Reducing JSON with jq
body: <p>I have a JSON array of Objects:</p>
  
  <pre><code>[{key1: value},{key2:value}, ...]
  </code></pre>
  
  <p>I would like to reduce these into the following structure:</p>
  
  <pre><code>{key1: value, key2: value, ...} 
  </code></pre>
  
  <p>Is this possible to do with <a href="http://stedolan.github.io/jq/" rel="noreferrer">jq</a>?</p>
  
  <p>I was trying:</p>
  
  <pre><code>cat myjson.json | jq '.[] | {(.key): value}'
  </code></pre>
  
  <p>This doesn't quite work as it iterates over each datum rather than reducing it to one Object.</p>