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); 97await JsonSerializer.SerializeAsync(responseStream, context.Object, SerializerOptions, httpContext.RequestAborted); 119await 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);