title: problem with query -php/json
body: <p>i have this code, and the output is: <code>{"round (avg (salary), 0)":"1750"}</code>  </p>
  
  <p>
  
  <pre><code>function tableOne() {
  
      $query = mysql_query("select round (avg (salary), 0) from worker, formation_area where id_formation_area=1") or die(mysql_error());
      $row = mysql_fetch_assoc($query);
      $result = $row;
  
      echo json_encode($result);
  }
  
  tableOne(); 
  
  ?&gt;
  </code></pre>
  
  <p>but i need something like this: {1750}. </p>
  
  <p>Any help?</p>