playwright/docs/src/api/csharp.md

311 B

method: Request.PostDataJSON

  • langs: csharp
  • returns: <[JsonDocument]>

Returns parsed request's body for form-urlencoded and JSON as a fallback if any.

When the response is application/x-www-form-urlencoded then a key/value object of the values will be returned. Otherwise it will be parsed as JSON.