Share via


JsonExtensions.GetJsonSerializerOptions(HttpContext) Method

Definition

Gets the JSON serializer options from the HTTP context.

public static System.Text.Json.JsonSerializerOptions GetJsonSerializerOptions(this Microsoft.AspNetCore.Http.HttpContext ctx);
static member GetJsonSerializerOptions : Microsoft.AspNetCore.Http.HttpContext -> System.Text.Json.JsonSerializerOptions
<Extension()>
Public Function GetJsonSerializerOptions (ctx As HttpContext) As JsonSerializerOptions

Parameters

ctx
HttpContext

The HTTP context.

Returns

The JSON serializer options configured for the context.

Applies to