Reads the response body as JSON.
The 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.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.