I'm attempting to do a simple get query on JavaScript to retrieve a JSON string.
This is what I've tried:
var response = $.get('https://uselessfacts.jsph.pl/random.json?
language=en') ;
var answer = JSON.stringify(response);
document.write(answer);
I am receiving the output : {"readyState":1}
I do not know what the problem is.
Appreciate the help.