To get JSON content, you need to use the response JSON type, which isn't quite difficult to use. To fetch https://con-se.glitch.me/res/searchme.json
, here's what you would do initially:
fetch('https://con-se.glitch.me/res/searchme.json')
But now all you have is a promise, no actual content. Here's where the then
function comes in. You'll need two:
.then(response => response.json())