Struggling to work with the response of a get request made using Axios to a Jobs API site. When I log the response, it appears as {data: "↵ ↵ ↵ ↵"}, resembling JSON but not quite usable in that format.
const url = //api string content
axios.get(url)
.then(function(res){
console.log(res);
})
.catch(function(){
console.log("err");
})
When attempting to access res.data directly or by parsing it as JSON, it seems to be returning an unexpected function structure instead of plain data. The format resembles something like displayJobs({"keys": "values"}). Oddly, when viewing the JSON directly at the link, it displays normally. How can I properly parse the returned data into a JSON format for easy manipulation? For example, accessing jobTitle like res.data.jobTitle
Any guidance would be greatly appreciated. While I have successfully worked with APIs in other projects, I am still learning and hope this question isn't too basic.