I am created a web service and it returns json data as follows. [{"lat":"6.8658","lng":"79.8744"}]
But I actually need like following. [{"lat":6.8658,"lng":79.8744}]
My php code is as follows
$location_data= $this->db->query("SELECT lat,lng FROM jobs WHERE job_code='JO34656'")->result_array();
echo json_encode($location_data);