## Ajax - Getting JSON from HTTP request

### XHR - XMLHttpRequestObject

- Set function for when XHR status changes
- Will need to test if XHR is "DONE" and if we got a successful response (e.g. HTTP 200)
- Will need to parse the text as JSON

### Javascript "fetch"

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

- MDN: Using Fetch
- MDN: Arrow Functions
- Introduction to Arrow Functions

### jQuery

jQuery makes this easier with the ".getJSON" method!