title: How do I convert an object array to an object list
body: <p>I have the following structure :</p>
  <pre><code>[
     {
       &quot;key&quot;: &quot;Asset Type&quot;,
       &quot;values&quot;: [&quot;Appliances&quot;, &quot;Electronics&quot;]
      }, 
      {
        &quot;key&quot;: &quot;Asset Availability&quot;,
        &quot;values&quot;: [&quot;In Stock&quot;]
      }
  ]
  </code></pre>
  <p>I need to convert it to :</p>
  <pre><code>{
    &quot;Asset Type&quot;: [&quot;appliances&quot;, &quot;electronics&quot;],
    &quot;Asset Availability&quot;: [&quot;in stock&quot;]
  }
  </code></pre>
  <p>How can I do that?</p>