title: How to json_encode php array but the keys without quotes
body: <p>I'm trying to plot (with <a href="https://github.com/flot/flot">Flot</a>) a pie chart with some data</p>
  
  <pre><code>var data = &lt;?php echo json_encode($data)?&gt;
  </code></pre>
  
  <p>The result I get from that is this:</p>
  
  <pre><code>var data = [
  {"label":"Crear Usuario", "data":"2"},
  {"label":"Impresoras", "data":"1"},
  {"label":"Problema Correo", "data":"1"},
  {"label":"Requisicion Equipo", "data":"1"},
  {"label":"Sitio Web", "data":"1"}
  ]
  </code></pre>
  
  <p>The problem here is that I need the <code>label</code> and <code>data</code> without the quotes, I already tried <code>json_encode($data, JSON_NUMERIC_CHECK);</code> but only removes the quotes from the numbers.</p>
  
  <p>The following format is what I need:</p>
  
  <pre><code>var data = [
      {label:"Crear Usuario",data:2}, ...
  </code></pre>