Back to Puppeteer

HTTPResponse.json() method

website/versioned_docs/version-24.40.0/api/puppeteer.httpresponse.json.md

19.2.2301 B
Original Source

HTTPResponse.json() method

Promise which resolves to a JSON representation of response body.

Signature

typescript
class HTTPResponse {
  json(): Promise<any>;
}

Returns:

Promise<any>

Remarks

This method will throw if the response body is not parsable via JSON.parse.