How do I change a JSON object into an array key/value pairs through code?
<p>How do I change a JSON object into an array key/value pairs through code?</p>

<p><strong>from:</strong></p>

<pre><code>{
   'name':'JC',
   'age':22
}
</code></pre>

<p><strong>to:</strong></p>

<p><code>['name':JC,'age':22] //actually, see UPDATE</code> </p>

<hr>

<p><strong>UPDATE:</strong></p>

<p>...I meant:</p>

<p><code>[{"name":"JC"},{"age":22}]</code></p>
