title: How to transform Json
body: <p>If i have this object in node.js:</p>
  
  <pre><code>[ 
   { platform: 'iOS', quantity: 60 },
   { platform: 'Android', quantity: 28 },
   { platform: 'Windows Phone', quantity: 14 }
  ]
  </code></pre>
  
  <p>How can I transform it as follows?</p>
  
  <pre><code>[ 
   { 'iOS': 60 },
   { 'Android': 28 },
   { 'Windows Phone': 14 }
  ]
  </code></pre>
  
  <p>Thanks.</p>