because response.json() returns another promise (which is within your function body)
More Related Contents:
- Use Async/Await with Axios in React.js
- Await an iterative function without delimiter in JS
- How to make javascript fetch synchronous?
- What is JSONP, and why was it created?
- Convert form data to JavaScript object with jQuery
- JavaScript asynchronous return value / assignment with jQuery [duplicate]
- How to compare arrays in JavaScript?
- Ajax request returns 200 OK, but an error event is fired instead of success
- Difference between JSON.stringify and JSON.parse
- What’s the difference between Javascript Object and JSON object
- fetch() unexpected end of input
- using async await and .then together
- Object copy using Spread operator actually shallow or deep?
- Iterating through/Parsing JSON Object via JavaScript
- javascript – Why is there a spec for sync and async modules?
- sort json object in javascript
- jQuery AJAX Call to PHP Script with JSON Return
- Why is node.js asynchronous?
- Trying to load local JSON file to show data in a html page using JQuery
- Is async await truly non-blocking in the browser?
- Count console.log objects
- JavaScript/JSON: Get unknown property of an object
- how to convert xml to json using jquery
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- Updating a JSON object using Javascript
- ASYNC / AWAIT SyntaxError: await is only valid in async functions and the top level bodies of modules
- How to get the total depth of an unknown JSON hierarchy?
- How to return an array from an AJAX call?
- Cannot create a string longer than 0x1fffffe8 characters in JSON.parse?
- Django: passing JSON from view to template