Here is a URL that returns JSON data: Link. I am attempting to access this data with the following script:
$.ajax({
type: 'GET',
url: 'http://www.spritpreisrechner.at/espritmap-app/GasStationServlet?data=%5B%22Stgilgen%22%2C%22DIE%22%2C13.3597716%2C47.7689327%2C13.3597716%2C47.7689327%5D',
dataType: 'jsonp',
success: function (data) {
$( "body" )
.append( "Kredit: " + data.kredit )
.append( "postalCode: " + data.postalCode );
} });
Unfortunately, this script does not seem to be working. Any suggestions on how to make it work?