Why would you fetch anything but json? ;)
fetch-json makes REST easy. It's a lightweight JavaScript library to reduce the boilerplate code needed to make HTTP calls to JSON endpoints.
Content-Type: application/json
.json()
JSON.stringify()
params
GET
credentials
'same-origin'
HEAD
$ npm install fetch-json
fetchJson.get(url, params) .then(handleData);