1 instantiation of SystemTextJsonOutputFormatter
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\SystemTextJsonOutputFormatter.cs (1)
48return new SystemTextJsonOutputFormatter(jsonSerializerOptions);
25 references to SystemTextJsonOutputFormatter
Microsoft.AspNetCore.Mvc.Core (7)
Formatters\SystemTextJsonOutputFormatter.cs (3)
19/// Initializes a new <see cref="SystemTextJsonOutputFormatter"/> instance. 35internal static SystemTextJsonOutputFormatter CreateFormatter(JsonOptions jsonOptions) 55/// A single instance of <see cref="SystemTextJsonOutputFormatter"/> is used for all JSON formatting. Any
Infrastructure\MvcCoreMvcOptionsSetup.cs (2)
81var jsonOutputFormatter = SystemTextJsonOutputFormatter.CreateFormatter(_jsonOptions.Value);
JsonOptions.cs (2)
12/// Options to configure <see cref="SystemTextJsonInputFormatter"/> and <see cref="SystemTextJsonOutputFormatter"/>. 33/// <see cref="SystemTextJsonOutputFormatter"/>.
Microsoft.AspNetCore.Mvc.Core.Test (16)
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)
125options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.CreateFormatter(new JsonOptions()));
Formatters\FormatFilterTest.cs (1)
465MvcOptions.OutputFormatters.Add(SystemTextJsonOutputFormatter.CreateFormatter(new JsonOptions()));
Formatters\SystemTextJsonOutputFormatterTest.cs (10)
20return SystemTextJsonOutputFormatter.CreateFormatter(new JsonOptions()); 30var formatter = SystemTextJsonOutputFormatter.CreateFormatter(jsonOptions); 177var formatter = SystemTextJsonOutputFormatter.CreateFormatter(jsonOptions); 221var formatter = SystemTextJsonOutputFormatter.CreateFormatter(jsonOptions); 265var exception = Assert.Throws<InvalidOperationException>(() => SystemTextJsonOutputFormatter.CreateFormatter(jsonOptions)); 284var stjOutputFormatter = SystemTextJsonOutputFormatter.CreateFormatter(jsonOptions);
HttpNotFoundObjectResultTest.cs (1)
68options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.CreateFormatter(new JsonOptions()));
HttpOkObjectResultTest.cs (1)
70options.Value.OutputFormatters.Add(SystemTextJsonOutputFormatter.CreateFormatter(new JsonOptions()));
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
DependencyInjection\NewtonsoftJsonMvcOptionsSetup.cs (1)
46options.OutputFormatters.RemoveType<SystemTextJsonOutputFormatter>();
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
95formatter => Assert.IsType<SystemTextJsonOutputFormatter>(formatter));