0
When trying to get a JSON through the URL: http://www.cidades.ibge.gov.br/gmap/shapes/35/MU_M13_3550308_1000.json
I get a status 200
with the error:
Uncaught SyntaxError: Unexpected token :
Using AJAX as follows:
$(document).ready(function($) {
$.ajax({
type: "GET",
url: "http://www.cidades.ibge.gov.br/gmap/shapes/35/MU_M13_3550308_1000.json",
dataType: "jsonp",
success: function(data) {
console.log(data);
},
error: function(xhr, ajaxOptions, thrownError) {
console.log(xhr.status);
console.log(thrownError);
}
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
What is the cause of the error?