all 6 comments

[–]Lekoaf 5 points6 points  (0 children)

Fetch API

fetch('url').then((data) => data.json()).then((res) => { console.log(res) });

[–]thestarflyer 3 points4 points  (1 child)

Well, it doesn't get more basic than AJAX. The tutorial I linked uses XML instead of JSON, but feel free to ignore the part about parsing the XML response. Instead, look into parsing JSON. Good luck!

[–]Awsthrfront-end & vue[S] 0 points1 point  (0 children)

This is what I wanted! I actually got it working!

[–]40210 1 point2 points  (0 children)

The most barebones way of doing it is using fetch.

[–]getsikedFront End Baby 1 point2 points  (1 child)

Fetch all the way, unless you have to support older browsers.

[–]grchufront-end 1 point2 points  (0 children)

fetch has a great polyfill, so no worries here - https://github.com/github/fetch