fetch("localhost:3000/api/home") // first step
.then(response => response.json()) // second step
.then(data => {
console.log(data)
})
.catch(error => console.error(error))
fetchJsonp('/users.jsonp')
.then(function(response) {
return response.json()
}).then(function(json) {
console.log('parsed json', json)
}).catch(function(ex) {
console.log('parsing failed', ex)
})