21 instantiations of JsonOptions
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\MvcCoreMvcOptionsSetup.cs (1)
30: this(readerFactory, NullLoggerFactory.Instance, Options.Create(new JsonOptions()))
Microsoft.AspNetCore.Mvc.Core.Test (18)
CreatedAtActionResultTests.cs (1)
88options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.CreateFormatter(new JsonOptions()));
CreatedAtRouteResultTests.cs (1)
102options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.CreateFormatter(new JsonOptions()));
CreatedResultTests.cs (1)
135options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.CreateFormatter(new JsonOptions()));
Formatters\FormatFilterTest.cs (1)
465MvcOptions.OutputFormatters.Add(SystemTextJsonOutputFormatter.CreateFormatter(new JsonOptions()));
Formatters\SystemTextJsonInputFormatterTest.cs (1)
187new JsonOptions
Formatters\SystemTextJsonOutputFormatterTest.cs (6)
20return SystemTextJsonOutputFormatter.CreateFormatter(new JsonOptions()); 27var jsonOptions = new JsonOptions(); 170var jsonOptions = new JsonOptions(); 214var jsonOptions = new JsonOptions(); 262var jsonOptions = new JsonOptions(); 281var jsonOptions = new JsonOptions();
HttpNotFoundObjectResultTest.cs (1)
68options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.CreateFormatter(new JsonOptions()));
HttpOkObjectResultTest.cs (1)
70options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.CreateFormatter(new JsonOptions()));
Infrastructure\SystemTextJsonResultExecutorTest.cs (1)
16Options.Create(new JsonOptions()),
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.ViewFeatures.Test (2)
Rendering\SystemTextJsonHelperTest.cs (2)
12protected override IJsonHelper GetJsonHelper() => GetJsonHelper(new JsonOptions()); 62var options = new JsonOptions
23 references to JsonOptions
Microsoft.AspNetCore.Grpc.Swagger (1)
GrpcSwaggerServiceExtensions.cs (1)
50var serializerOptions = s.GetService<IOptions<JsonOptions>>()?.Value?.JsonSerializerOptions ?? new JsonSerializerOptions();
Microsoft.AspNetCore.Mvc.Core (14)
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (3)
38/// Configures <see cref="JsonOptions"/> for the specified <paramref name="builder"/>. 42/// <param name="configure">An <see cref="Action"/> to configure the <see cref="JsonOptions"/>.</param> 46Action<JsonOptions> configure)
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (3)
40/// Configures <see cref="JsonOptions"/> for the specified <paramref name="builder"/>. 43/// <param name="configure">An <see cref="Action"/> to configure the <see cref="JsonOptions"/>.</param> 47Action<JsonOptions> configure)
Formatters\SystemTextJsonInputFormatter.cs (3)
16private readonly JsonOptions _jsonOptions; 22/// <param name="options">The <see cref="JsonOptions"/>.</param> 25JsonOptions options,
Formatters\SystemTextJsonOutputFormatter.cs (1)
35internal static SystemTextJsonOutputFormatter CreateFormatter(JsonOptions jsonOptions)
Infrastructure\MvcCoreMvcOptionsSetup.cs (2)
27private readonly IOptions<JsonOptions> _jsonOptions; 34public MvcCoreMvcOptionsSetup(IHttpRequestStreamReaderFactory readerFactory, ILoggerFactory loggerFactory, IOptions<JsonOptions> jsonOptions)
Infrastructure\SystemTextJsonResultExecutor.cs (2)
23private readonly JsonOptions _options; 27IOptions<JsonOptions> options,
Microsoft.AspNetCore.Mvc.Core.Test (5)
Formatters\SystemTextJsonOutputFormatterTest.cs (5)
27var jsonOptions = new JsonOptions(); 170var jsonOptions = new JsonOptions(); 214var jsonOptions = new JsonOptions(); 262var jsonOptions = new JsonOptions(); 281var jsonOptions = new JsonOptions();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Rendering\SystemTextJsonHelper.cs (1)
15public SystemTextJsonHelper(IOptions<JsonOptions> options)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Rendering\SystemTextJsonHelperTest.cs (2)
14private static IJsonHelper GetJsonHelper(JsonOptions options) 62var options = new JsonOptions