13 references to JsonSerializerOptions
Microsoft.AspNetCore.Components.Web (1)
WebRenderer.cs (1)
128var newJsonOptions = new JsonSerializerOptions(jsonOptions);
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
81return new ExtensionsExceptionJsonContext(new JsonSerializerOptions(jsonOptions.SerializerOptions));
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
ProblemDetailsJsonConverterTest.cs (1)
106var serializerOptions = new JsonSerializerOptions(JsonSerializerOptions) { UnknownTypeHandling = System.Text.Json.Serialization.JsonUnknownTypeHandling.JsonNode };
Microsoft.AspNetCore.Http.Extensions (1)
JsonOptions.cs (1)
34public JsonSerializerOptions SerializerOptions { get; } = new JsonSerializerOptions(DefaultSerializerOptions);
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\SystemTextJsonOutputFormatter.cs (1)
42jsonSerializerOptions = new JsonSerializerOptions(jsonSerializerOptions)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Rendering\SystemTextJsonHelper.cs (1)
36return new JsonSerializerOptions(serializerOptions)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Extensions\Converters\VSExtensionConverter.cs (1)
53options = new System.Text.Json.JsonSerializerOptions(options);
Microsoft.Extensions.AI.Abstractions.Tests (2)
Utilities\AIJsonUtilitiesTests.cs (2)
215JsonSerializerOptions options = new(JsonSerializerOptions.Default); 236JsonSerializerOptions options = new(JsonSerializerOptions.Default) { NumberHandling = JsonNumberHandling.AllowReadingFromString };
Shared.Tests (4)
JsonSchemaExporter\JsonSchemaExporterTests.cs (4)
31? new(opts) { TypeInfoResolver = Options.TypeInfoResolver } 43? new(opts) { TypeInfoResolver = Options.TypeInfoResolver } 156JsonSerializerOptions options = new(Options) { MaxDepth = 1 }; 164var options = new JsonSerializerOptions(Options) { ReferenceHandler = ReferenceHandler.Preserve };