title: Invalid JSON in ajax from php file
body: <p>First the code.</p>
  
  <p>php file:</p>
  
  <pre><code>    $data = DB::typeAlerte()-&gt;all();
  
      for($i=0;$i&lt;sizeof($data);$i++)
          $rep[] = $data[$i]['id'];
  
      echo json_encode($rep);
  </code></pre>
  
  <p>javascript file :</p>
  
  <pre><code>myJ.ajax({
      type:   'POST',
      url:    '../lib/form/f_idTypeAlerte.php',
      datatype:'json',
      success: function(msg) {
        alert(msg)
        msg = myJ.parseJSON(msg);
        alert(msg[0])
      }       
  });
  </code></pre>
  
  <p><code>myJ.parseJSON(msg)</code> catch this error : <code>Uncaught Invalid JSON: ["COURROIE","PNEUS ARRIERE","PNEUS AVANT","VIDANGE"] jquery-1.5.1.js:869</code> whereas the JSON is <a href="http://www.jsonlint.com/" rel="nofollow">ok</a></p>
  
  <p>Why i have this error ? </p>