title: How to encode to JSON encoded array from non sequential array
body: <p>Using CakePHP (On PHP 5.2.6) I do a list query on a table which returns an array like:</p>
  
  <p>Array
  (</p>
  
  <pre><code>[0] =&gt; None
  [3] =&gt; Value 1
  [5] =&gt; Value 2
  </code></pre>
  
  <p>)</p>
  
  <p>Since it's not a sequential array json_encode() encodes it to an object instead of a JSON array which I need for filling a Jeditable Select. </p>
  
  <p>PHP 5.2.6 does not support any additional parameters, so I can't force it to create an JSON encoded array.</p>
  
  <p>My question, does anyone know how I can solve this problem in a clean way?</p>