60 references to JsonSerializerOptions
aspire (2)
BackchannelJsonSerializerContext.g.cs (1)
19public static global::Aspire.Cli.Backchannel.BackchannelJsonSerializerContext Default { get; } = new global::Aspire.Cli.Backchannel.BackchannelJsonSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
JsonSourceGenerationContext.g.cs (1)
22public static global::Aspire.Cli.JsonSourceGenerationContext Default { get; } = new global::Aspire.Cli.JsonSourceGenerationContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Aspire.Confluent.Kafka (1)
StatisticsJsonSerializerContext.g.cs (1)
21public static global::Aspire.Confluent.Kafka.StatisticsJsonSerializerContext Default { get; } = new global::Aspire.Confluent.Kafka.StatisticsJsonSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Aspire.Dashboard (2)
GenAIEventsContext.g.cs (1)
23public static global::Aspire.Dashboard.Model.GenAI.GenAIEventsContext Default { get; } = new global::Aspire.Dashboard.Model.GenAI.GenAIEventsContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
GenAIMessagesContext.g.cs (1)
23public static global::Aspire.Dashboard.Model.GenAI.GenAIMessagesContext Default { get; } = new global::Aspire.Dashboard.Model.GenAI.GenAIMessagesContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Aspire.Hosting (2)
DashboardLogMessageContext.g.cs (1)
19public static global::Aspire.Hosting.Dashboard.DashboardLogMessageContext Default { get; } = new global::Aspire.Hosting.Dashboard.DashboardLogMessageContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
LaunchSettingsSerializerContext.g.cs (1)
22public static global::Aspire.Hosting.LaunchSettingsSerializerContext Default { get; } = new global::Aspire.Hosting.LaunchSettingsSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Aspire.Hosting.Azure.Functions (1)
LaunchSettingsSerializerContext.g.cs (1)
22public static global::Aspire.Hosting.LaunchSettingsSerializerContext Default { get; } = new global::Aspire.Hosting.LaunchSettingsSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Aspire.Hosting.Nats.Tests (1)
artifacts\obj\Aspire.Hosting.Nats.Tests\Debug\net8.0\System.Text.Json.SourceGeneration\System.Text.Json.SourceGeneration.JsonSourceGenerator\AppJsonContext.g.cs (1)
22public static global::Aspire.Hosting.Nats.Tests.AppJsonContext Default { get; } = new global::Aspire.Hosting.Nats.Tests.AppJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Aspire.Hosting.Testing (1)
LaunchSettingsSerializerContext.g.cs (1)
22public static global::Aspire.Hosting.LaunchSettingsSerializerContext Default { get; } = new global::Aspire.Hosting.LaunchSettingsSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Authentication.BearerToken (1)
BearerTokenJsonSerializerContext.g.cs (1)
24public static global::Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenJsonSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenJsonSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterJsonContext.g.cs (1)
26public static global::Microsoft.AspNetCore.Authentication.Twitter.TwitterHandler.TwitterJsonContext Default { get; } = new global::Microsoft.AspNetCore.Authentication.Twitter.TwitterHandler.TwitterJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Components.Endpoints (3)
ImportMapSerializerContext.g.cs (1)
24public static global::Microsoft.AspNetCore.Components.ImportMapSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Components.ImportMapSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
24public static global::Microsoft.AspNetCore.Components.PrerenderComponentApplicationStoreSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Components.PrerenderComponentApplicationStoreSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
ResourceCollectionSerializerContext.g.cs (1)
30public static global::Microsoft.AspNetCore.Components.Endpoints.ResourceCollectionUrlEndpoint.ResourceCollectionSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Components.Endpoints.ResourceCollectionUrlEndpoint.ResourceCollectionSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Components.Server (2)
CircuitPersistenceManagerSerializerContext.g.cs (1)
26public static global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitPersistenceManager.CircuitPersistenceManagerSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitPersistenceManager.CircuitPersistenceManagerSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
24public static global::Microsoft.AspNetCore.Components.PrerenderComponentApplicationStoreSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Components.PrerenderComponentApplicationStoreSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Components.Web (2)
WebRenderer.cs (1)
128var newJsonOptions = new JsonSerializerOptions(jsonOptions);
WebRendererSerializerContext.g.cs (1)
24public static global::Microsoft.AspNetCore.Components.RenderTree.WebRendererSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Components.RenderTree.WebRendererSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Components.WebAssembly (2)
PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
24public static global::Microsoft.AspNetCore.Components.PrerenderComponentApplicationStoreSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Components.PrerenderComponentApplicationStoreSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
WebAssemblyJsonSerializerContext.g.cs (1)
29public static global::Microsoft.AspNetCore.Components.WebAssembly.Infrastructure.WebAssemblyJsonSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Components.WebAssembly.Infrastructure.WebAssemblyJsonSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Components.WebView (1)
SourceGenerationContext.g.cs (1)
28public static global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.SourceGenerationContext Default { get; } = new global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.SourceGenerationContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Diagnostics (2)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
81return new ExtensionsExceptionJsonContext(new JsonSerializerOptions(jsonOptions.SerializerOptions));
ExtensionsExceptionJsonContext.g.cs (1)
24public static global::Microsoft.AspNetCore.Diagnostics.ExtensionsExceptionJsonContext Default { get; } = new global::Microsoft.AspNetCore.Diagnostics.ExtensionsExceptionJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Hosting (1)
SourceGenerationContext.g.cs (1)
28public static global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.SourceGenerationContext Default { get; } = new global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.SourceGenerationContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
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 (2)
JsonOptions.cs (1)
34public JsonSerializerOptions SerializerOptions { get; } = new JsonSerializerOptions(DefaultSerializerOptions);
ProblemDetailsJsonContext.g.cs (1)
24public static global::Microsoft.AspNetCore.Http.ProblemDetailsJsonContext Default { get; } = new global::Microsoft.AspNetCore.Http.ProblemDetailsJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Http.Microbenchmarks (1)
SharedTestJsonContext.g.cs (1)
24public static global::Microsoft.AspNetCore.Http.Generators.Tests.SharedTestJsonContext Default { get; } = new global::Microsoft.AspNetCore.Http.Generators.Tests.SharedTestJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Http.Results.Tests (3)
ObjectJsonContext.g.cs (1)
26public static global::Microsoft.AspNetCore.Http.HttpResults.TypedResultsTests.ObjectJsonContext Default { get; } = new global::Microsoft.AspNetCore.Http.HttpResults.TypedResultsTests.ObjectJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
StringJsonContext.g.cs (1)
26public static global::Microsoft.AspNetCore.Http.HttpResults.ResultsTests.StringJsonContext Default { get; } = new global::Microsoft.AspNetCore.Http.HttpResults.ResultsTests.StringJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
TestJsonContext.g.cs (1)
26public static global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TestJsonContext Default { get; } = new global::Microsoft.AspNetCore.Http.HttpResults.HttpResultsHelperTests.TestJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Identity (2)
IdentityEndpointsJsonSerializerContext.g.cs (1)
24public static global::Microsoft.AspNetCore.Identity.Data.IdentityEndpointsJsonSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Identity.Data.IdentityEndpointsJsonSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
IdentityJsonSerializerContext.g.cs (1)
28public static global::Microsoft.AspNetCore.Identity.IdentityJsonSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Identity.IdentityJsonSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (1)
Internal\ObjectVisitorTest.cs (1)
81var options = new JsonSerializerOptions(JsonSerializerOptions.Web) { IncludeFields = true };
Microsoft.AspNetCore.Mvc.Core (1)
Formatters\SystemTextJsonOutputFormatter.cs (1)
42jsonSerializerOptions = new JsonSerializerOptions(jsonSerializerOptions)
Microsoft.AspNetCore.Mvc.Core.Test (1)
TestJsonContext.g.cs (1)
26public static global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.TestJsonContext Default { get; } = new global::Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatterTest.TestJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Mvc.Testing (1)
CustomJsonSerializerContext.g.cs (1)
26public static global::Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory<TEntryPoint>.CustomJsonSerializerContext Default { get; } = new global::Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory<TEntryPoint>.CustomJsonSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Rendering\SystemTextJsonHelper.cs (1)
36return new JsonSerializerOptions(serializerOptions)
Microsoft.AspNetCore.OpenApi (3)
OpenApiJsonSchemaContext.g.cs (1)
24public static global::Microsoft.AspNetCore.OpenApi.OpenApiJsonSchemaContext Default { get; } = new global::Microsoft.AspNetCore.OpenApi.OpenApiJsonSchemaContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Services\Schemas\OpenApiSchemaService.cs (2)
34private readonly OpenApiJsonSchemaContext _jsonSchemaContext = new(new(jsonOptions.Value.SerializerOptions)); 35private readonly JsonSerializerOptions _jsonSerializerOptions = new(jsonOptions.Value.SerializerOptions)
Microsoft.AspNetCore.SignalR.Tests (1)
AppJsonSerializerContext.g.cs (1)
26public static global::Microsoft.AspNetCore.SignalR.Tests.NativeAotTests.AppJsonSerializerContext Default { get; } = new global::Microsoft.AspNetCore.SignalR.Tests.NativeAotTests.AppJsonSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsManifestJsonContext.g.cs (1)
24public static global::Microsoft.AspNetCore.StaticAssets.StaticAssetsManifestJsonContext Default { get; } = new global::Microsoft.AspNetCore.StaticAssets.StaticAssetsManifestJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.CodeAnalysis.LanguageServer (1)
RunFileApiJsonSerializerContext.g.cs (1)
24public static global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunFileApiJsonSerializerContext Default { get; } = new global::Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.RunFileApiJsonSerializerContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Extensions\Converters\VSExtensionConverter.cs (1)
53options = new System.Text.Json.JsonSerializerOptions(options);
Microsoft.Extensions.AI.Abstractions.Tests (6)
Contents\ErrorContentTests.cs (1)
54JsonSerializerOptions options = new(AIJsonUtilities.DefaultOptions) { PropertyNamingPolicy = JsonNamingPolicy.CamelCase };
Utilities\AIJsonUtilitiesTests.cs (5)
284JsonSerializerOptions options = new(AIJsonUtilities.DefaultOptions); 359JsonSerializerOptions options = new(AIJsonUtilities.DefaultOptions) { NumberHandling = JsonNumberHandling.AllowReadingFromString }; 409JsonSerializerOptions options = new(AIJsonUtilities.DefaultOptions) { NumberHandling = JsonNumberHandling.AllowReadingFromString }; 1094JsonSerializerOptions indentOptions = new(AIJsonUtilities.DefaultOptions) { WriteIndented = true }; 1095JsonSerializerOptions noIndentOptions = new(AIJsonUtilities.DefaultOptions) { WriteIndented = false };
Microsoft.Extensions.AI.Tests (1)
Functions\AIFunctionFactoryTest.cs (1)
111JsonSerializerOptions options = new(AIJsonUtilities.DefaultOptions) { ReadCommentHandling = JsonCommentHandling.Skip };
Microsoft.ML.Tokenizers (1)
ModelSourceGenerationContext.g.cs (1)
19public static global::Microsoft.ML.Tokenizers.ModelSourceGenerationContext Default { get; } = new global::Microsoft.ML.Tokenizers.ModelSourceGenerationContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
Nats.Common (1)
AppJsonContext.g.cs (1)
22public static global::Nats.Common.AppJsonContext Default { get; } = new global::Nats.Common.AppJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));
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 };
Wasm.Performance.TestApp (1)
PersonJsonContext.g.cs (1)
24public static global::Wasm.Performance.TestApp.PersonJsonContext Default { get; } = new global::Wasm.Performance.TestApp.PersonJsonContext(new global::System.Text.Json.JsonSerializerOptions(s_defaultOptions));