getJSON in Vanilla JS
As someone who has been using jQuery on and off for over 10 years(!!) now, I have mixed emotions about it. It’s fantastic for loads of use cases, not to mention cross browser compatibility.
However, I’ve found myself in a handful of situations where all I need is $.getJSON
and I’m less worried about older browsers. So I cobbled together this gist: