JsonExtensions.GetJsonSerializerOptions(HttpContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.