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

24 lines
346 B
Markdown
Raw Normal View History

---
sidebar_label: HTTPResponse.json
---
# HTTPResponse.json() method
Promise which resolves to a JSON representation of response body.
2022-10-24 14:31:12 +00:00
#### Signature:
```typescript
class HTTPResponse {
json(): Promise<any>;
}
```
**Returns:**
Promise&lt;any&gt;
## Remarks
This method will throw if the response body is not parsable via `JSON.parse`.