title: Convert an object with multiple values per key into array of objects in JS
body: <p>I have an object that looks like this:</p>
  
  <pre><code> obj={"a": [1,2],"b": [3,4],"c": [5,6]}
  </code></pre>
  
  <p>I need to create an array of objects where every object consists of each key with only one value corresponding to its order like this:</p>
  
  <pre><code>obj2=[{"a": 1, "b": 3, "c": 5},{"a": 2, "b": 4, "c": 6}]
  </code></pre>
  
  <p>Also, if I have a JSON string using <code>JSON.stringify(obj)</code>, would it be somehow possible to create string corresponding to <code>JSON.stringify(obj2)</code> directly from the first one?</p>