I ended up writing my own function to fetch JSON data as silly little me recommended in the original post. Thanks to everyone who replied. The guidance on JavaScript library dependencies was very valuable, even though I went down this other route.
I used this Stack Overflow answer as a guide for writing my own function to fetch JSON. I needed to fetch the data synchronously, so I adjusted the function with the tips outlined in this other article.
In the end, my function looked like this. I hope it helps someone else who comes along.
var fetchJSON = function(path, callback) {
var httpRequest = new XMLHttpRequest();
httpRequest.open('GET', path, false);
httpRequest.send();
if (httpRequest.readyState === 4) {
if (httpRequest.status === 200) {
var data = JSON.parse(httpRequest.responseText);
if (callback) callback(data);
}
}
}