working GPS coordinates

Now successfully sending data to server in JSON format.