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