title: How to merge Aeson objects?
body: <p>I have a list of aeson objects like this</p>
  
  <pre><code>[object ["key1" .= "value1"], object ["key2" .= "value2"]] 
  </code></pre>
  
  <p>and I want to merge them as a single aeson object like this</p>
  
  <pre><code>object ["key1" .= "value1", "key2" .= "value2"]
  </code></pre>
  
  <p>This is quite standard when working with JSON data in other languages (merge operation) but I don't see anything similar in the Aeson library.</p>
  
  <p>Am I just missing something and can this be done with some standard haskell function? I tried using <code>sequence</code> but it seems that JSON <code>Value</code> is not a monad so I cannot do that.</p>
  
  <p>I don't need to deal with deep merging or duplicate keys, I just want to generate something like</p>
  
  <pre><code>{
    "key1": value1,
    "key2": value2
  }
  </code></pre>
  
  <p>from</p>
  
  <pre><code>[{ "key1": value1 }, { "key2": value2 }]
  </code></pre>