Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(dotnet): rename getPayloadAsJson to PostDataJsonAsync (#6533)

Darío Kondratiuk7adf907fba81
diff --git a/docs/src/api/csharp.md b/docs/src/api/csharp.md
index 0c29f740a0..0a0b9e7c8f 100644
--- a/docs/src/api/csharp.md
+++ b/docs/src/api/csharp.md
@@ -1,13 +1,17 @@
-## method: Request.getPayloadAsJson
+## method: Request.PostDataJSON
* langs: csharp
- returns: <[JsonDocument]>
-Returns a [JsonDocument] representation of [`method: Request.postDataBuffer`].
+Returns parsed request's body for `form-urlencoded` and JSON as a fallback if any.
-### option: Request.getPayloadAsJson.serializerOptions
+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.
+
+### param: Request.PostDataJSON.serializerOptions
+* langs: csharp
- `documentOptions` <[null]|[JsonDocumentOptions]>
-The options that control custom behaviour when parsing the JSON.
+Optional Json options that control custom behaviour when parsing the JSON.
## method: Response.statusCode
* langs: csharp