How can I read JSON file from the API using AJAX?
How can I read JSON file from the API using AJAX?
Hello,
I want to parse/read the results from a jSON file coming from the API but I have not been able to make it work so far.
The code I'm using is as follows:
$.ajax({
type: 'GET',
url: '
https://recruit.zoho.com/recruit/private/json/JobOpenings/getRecords?newFormat=1&authtoken=MyAuthToken&scope=recruitapi&version=2',
async: false,
jsonpCallback: 'jsonCallback',
contentType: "application/json",
dataType: 'jsonp',
success: function(data)
{
$('#jsonp-results').html(JSON.stringify(data));
console.log(json);
alert('yo');
},
error: function(e)
{
alert('yo');
}
});
However, this doesn't returns anything.
Can you please point me in the right direction?