title: how remove the backslash ("\") in the json response using php?
body: <p>I try to add a row of mysql query into JSON whit php. I use this code:</p>
  
  <pre><code>public function lugaresCercanos($lng, $lat, $distance){
  $result=mysql_query("SELECT nombre, distancia FROM Lugar ORDER BY distancia ASC");
  $info=array();
      while($row = mysql_fetch_array($result,MYSQL_ASSOC)){
          array_push($info,$row);
      }
      return json_encode($info);
  </code></pre>
  
  <p>This returns a JSONObject, but I'm not sure.</p>
  
  <pre><code>    class resultado_final {
  public $logstatus = "";
  public $lugares_cercanos = "";}
  
  $result_final = new resultado_final();
  if($db-&gt;login($usuario,$passw)){
  $result_final-&gt;logstatus = "0";}else{
  $result_final-&gt;logstatus = "1";}
  $result_final-&gt;lugares_cercanos = $lista;
  echo json_encode($result_final);
  </code></pre>
  
  <p>This code print this:</p>
  
  <pre><code>{"logstatus":"1","lugares_cercanos":"[{\"nombre\":\"Rio Amazonas\",\"distancia\":\"5119.000\"},{\"nombre\":\"Swissotel \",\"distancia\":\"5823.000\"},{\"nombre\":\"Laguna de Yaguarcocha\",\"distancia\":\"71797.000\"}]"}
  </code></pre>
  
  <p>why the rows of the query are separated by backslashes?
  how  remove the backslashes?
  Thanks alot!</p>