1 write to SerializerOptions
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\SystemTextJsonOutputFormatter.cs (1)
24
SerializerOptions
= jsonSerializerOptions;
5 references to SerializerOptions
Microsoft.AspNetCore.Mvc.Core (3)
Formatters\SystemTextJsonOutputFormatter.cs (3)
77
var declaredTypeJsonInfo =
SerializerOptions
.GetTypeInfo(context.ObjectType);
98
await JsonSerializer.SerializeAsync(responseWriter, context.Object,
SerializerOptions
, httpContext.RequestAborted);
118
await JsonSerializer.SerializeAsync(transcodingStream, context.Object,
SerializerOptions
);
Microsoft.AspNetCore.Mvc.Core.Test (2)
Formatters\SystemTextJsonOutputFormatterTest.cs (2)
285
Assert.IsAssignableFrom<IJsonTypeInfoResolver>(stjOutputFormatter.
SerializerOptions
.TypeInfoResolver);
289
Assert.IsType<DefaultJsonTypeInfoResolver>(stjOutputFormatter.
SerializerOptions
.TypeInfoResolver);