{"action":"opened","issue":{"url":"https://api.github.com/repos/ItzProxy/urPark/issues/1","repository_url":"https://api.github.com/repos/ItzProxy/urPark","labels_url":"https://api.github.com/repos/ItzProxy/urPark/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ItzProxy/urPark/issues/1/comments","events_url":"https://api.github.com/repos/ItzProxy/urPark/issues/1/events","html_url":"https://github.com/ItzProxy/urPark/issues/1","id":143766327,"number":1,"title":"Ajax Problem: in Test branch","user":{"login":"ItzProxy","id":6831757,"avatar_url":"https://avatars.githubusercontent.com/u/6831757?v=3","gravatar_id":"","url":"https://api.github.com/users/ItzProxy","html_url":"https://github.com/ItzProxy","followers_url":"https://api.github.com/users/ItzProxy/followers","following_url":"https://api.github.com/users/ItzProxy/following{/other_user}","gists_url":"https://api.github.com/users/ItzProxy/gists{/gist_id}","starred_url":"https://api.github.com/users/ItzProxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItzProxy/subscriptions","organizations_url":"https://api.github.com/users/ItzProxy/orgs","repos_url":"https://api.github.com/users/ItzProxy/repos","events_url":"https://api.github.com/users/ItzProxy/events{/privacy}","received_events_url":"https://api.github.com/users/ItzProxy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-27T01:25:10Z","updated_at":"2016-03-27T01:25:10Z","closed_at":null,"body":"function saveData() {\r\n    if (getCurrentPolyLineObj().length == 0) {\r\n        return;\r\n    }\r\n    var Coords = JSON.parse(getCurrentPolyLineObj());\r\n    for (var x in Coords) {\r\n        console.log(x.lat + \" \" + x.lng + \" \");\r\n    }\r\n    $.ajax({\r\n            method: \"POST\",\r\n            url: \"adminPanel.php\",\r\n            datatype: \"json\",\r\n            data: {Coordinates: Coords},\r\n        })\r\n        .done(function (msg) {\r\n            var out = \"\";\r\n            for (var i = 0; i < msg.length; i++) {\r\n                out += \"lat: \" + msg[i].lat + \" lng: \" + msg[i].lng + \"\\n\";\r\n            }\r\n            console.log(out);\r\n        });\r\n}\r\n\r\nthis is the code (from adminControl.js) that I've been trying to use to debug what the object is suppose to look like and what is being sent to the php file: adminPanel.php. "}}