1 write to JsonSerializerOptions
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Rendering\SystemTextJsonHelperTest.cs (1)
64JsonSerializerOptions =
14 references to JsonSerializerOptions
Microsoft.AspNetCore.Grpc.Swagger (1)
GrpcSwaggerServiceExtensions.cs (1)
50var serializerOptions = s.GetService<IOptions<JsonOptions>>()?.Value?.JsonSerializerOptions ?? new JsonSerializerOptions();
Microsoft.AspNetCore.Mvc.Core (3)
Formatters\SystemTextJsonInputFormatter.cs (1)
28SerializerOptions = options.JsonSerializerOptions;
Formatters\SystemTextJsonOutputFormatter.cs (1)
37var jsonSerializerOptions = jsonOptions.JsonSerializerOptions;
Infrastructure\SystemTextJsonResultExecutor.cs (1)
114return _options.JsonSerializerOptions;
Microsoft.AspNetCore.Mvc.Core.Test (8)
Formatters\SystemTextJsonOutputFormatterTest.cs (4)
28jsonOptions.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.Preserve; 174jsonOptions.JsonSerializerOptions.TypeInfoResolver = TestJsonContext.Default; 218jsonOptions.JsonSerializerOptions.TypeInfoResolver = TestJsonContext.Default; 263jsonOptions.JsonSerializerOptions.TypeInfoResolver = null;
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (2)
12private static JsonSerializerOptions JsonSerializerOptions => new JsonOptions().JsonSerializerOptions; 179var options = new JsonOptions().JsonSerializerOptions;
JsonOptionsTest.cs (2)
22var options = new JsonOptions().JsonSerializerOptions; 40var options = new JsonOptions().JsonSerializerOptions;
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
SystemTextJsonOutputFormatterTest.cs (1)
34.AddJsonOptions(o => o.JsonSerializerOptions.Encoder = JavaScriptEncoder.Default);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Rendering\SystemTextJsonHelper.cs (1)
17_htmlSafeJsonSerializerOptions = GetHtmlSafeSerializerOptions(options.Value.JsonSerializerOptions);