In a sense both are correct. JSON stands for
response.json() doesn’t literally just do some direct conversion of a response to a JSON file or anything, that’s effectively what it is doing from the perspective of using the value retrieved from
response.json() in your work.
Which promise are you referring to? The one returned by
fetch() or the one returned by
The response is a JSON object. Slightly different things.
response.JSON() converts it into something you can use in JS.
But the lesson diagram says the response gets converted to a JSON object
Is the JSON object a string version of the object?