My code snippet:
$.getJSON('http://../id=1397391950253&callback=?', null, function (results) {
alert('Successfully achieved a cross domain JS call');
});
The result obtained is as follows:
{
"data": [{
"shiftY": 0,
"regType": "FAS",
"fuelVolume": 2373,
"eventDate": 166625019,
"gsmOn": true,
"bigIconHeight": 21,
"speed": 17,
"roamingOn": false,
"direction": 134,
"latitude": 54.8658849,
"bigShiftY": 0,
"iconHeight": 28,
"useDiscreteOutput": false
}],
"reportDescriptor": {
"reportTypeID": 2,
"objectTypes": ",FAS,FTC",
"dependencyType": "vehicle"
}
}
However, I encountered an error in Chrome that says "Uncaught SyntaxError: Unexpected token : rtmap:1". What could be the issue with the result?