Ajax - Getting JSON from HTTP request

Javascript "fetch"

fetch(url).then(response => response.json()).then(data => processData(data));