Getting a callback({data:...}) returned from GET request instead of a JSON object

Hi, just wondering if anyone has come across this before, I couldn’t find any answers from stackoverflow. I am trying to make an external API call from an express server with axios.get() instead of getting a JSON object back, I got a callback function with an object that contains all the data. How to get around this please? thank you for your help.

Hello comrade,

You may please share the code you call the API please?

Also how do you validate that the result is just like a function as screenshot provided, not sure, maybe your tool shows it this way?

Please share the code you call the server, we will find out indeed.

Hi, I managed to solve it. The server return the request with a JSONP respone. Just never seen that before. Thank you !