Reads the response body as JSON.
json() function reads the body response stream to its completion and
parses it as JSON. It returns a Promise that resolves to the response body as
a JSON object.
function json(): Promise<Object>
This function does not take any parameters.
Fulfilled - The parsed response body as JSON. Rejected - The errors that caused the rejection.
Was this helpful?