Is Body.json() faster than JSON.parse(responseText) for JSON received from fetch?
Theoretically Body.json() can start decoding JSON as soon as it receives the first bytes from the ReadableStream from fetch.
Is this how it works? Or does it wait until all bytes are received?
const response = await fetch(url);
const json = await response.json();
const response = await fetch(url);
const text = await response.text();
const json = JSON.parse(text);
So, is there a difference between these versions of the code?