I try to add a row of mysql query into JSON whit php. I use this code:
public function lugaresCercanos($lng, $lat, $distance){ $result=mysql_query(\"SELECT n
Try
json_encode($arr, JSON_UNESCAPED_SLASHES);
or
echo str_replace('\/','/',json_encode($mydatas));
(if unescape doesn't work) http://php.net/manual/en/function.json-encode.php