puppeteer/website/versioned_docs/version-10.1.0/puppeteer.httpresponse.json.md
2021-08-10 11:09:48 +01:00

515 B

Home > puppeteer > HTTPResponse > json

HTTPResponse.json() method

Signature:

json(): Promise<any>;

Returns:

Promise<any>

Promise which resolves to a JSON representation of response body.

Remarks

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