title: How can I convert object properties to an array?
body: <p>I want to convert a JSON object from</p>
  <pre><code>{ id1: data1, id2: data2} //Declared as var myObj
  </code></pre>
  <p>to</p>
  <pre><code>[{id: id1, data: data1},{id: id2, data: data2}]
  </code></pre>
  <p>How do I do it?
  Thank you for your time. :)</p>
  <p>I have no idea how to proceed.</p>