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
If anyone wants to remove the backslashes and also pretty print the JSON data, the following can be used:
json_encode($my_array, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);