I have the following code:
$('#aprovados').click( function(){
var job = $.getJSON($(this).attr("data-ajax-info-job"),
function(jobinfo){
return jobinfo }
);
console.log(job)
});
The idea was to return my json data that comes from my backend but I get it as if it were a log of the request. How could I change this code to just get the json I need?