taniarascia / comments

Comments
7 stars 0 forks source link

how-to-use-the-javascript-fetch-api-to-get-json-data/ #87

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

How to Use the JavaScript Fetch API to Get JSON Data | Tania Rascia

In How to Use JSON Data with PHP or JavaScript, I discussed how to use to get data from a JSON feed. The Fetch API is a newer built-in…

https://www.taniarascia.com/how-to-use-the-javascript-fetch-api-to-get-json-data/

dwiehoff commented 3 years ago

What does this part do?

.then(response => response.json())
nizz0k commented 2 years ago

accesses the json part of the whole http request that the fetch api is abstracting.

renyuns commented 2 years ago

What does this part do?

.then(response => response.json())

https://developer.mozilla.org/en-US/docs/Web/API/Response/json