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
Stop double-encoding your data. Put everything together in one large structure and then encode only that.