301 references to JsonSerializerOptions
aspire (22)
Commands\DescribeCommand.cs (2)
53public static ResourcesCommandJsonContext RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions 64public static ResourcesCommandJsonContext Ndjson => s_ndjson ??= new(new JsonSerializerOptions
Commands\LogsCommand.cs (2)
54new JsonSerializerOptions 66new JsonSerializerOptions
Commands\PsCommand.cs (2)
53public static PsCommandJsonContext RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions 63public static PsCommandJsonContext CompactRelaxedEscaping => s_compactRelaxedEscaping ??= new(new JsonSerializerOptions
Commands\RunCommand.cs (1)
51public static RunCommandJsonContext RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions
JsonSourceGenerationContext.cs (2)
73public static JsonSourceGenerationContext RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions 87public static JsonSourceGenerationContext Streaming => s_streaming ??= new(new JsonSerializerOptions
Mcp\Tools\ListResourcesTool.cs (1)
37public static ListResourcesToolJsonContext RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions
Migrations\TypeScriptAppHostMigration.cs (3)
221File.WriteAllText(configPath, root.ToJsonString(new JsonSerializerOptions { WriteIndented = true })); 269File.WriteAllText(tsConfigPath, root.ToJsonString(new JsonSerializerOptions { WriteIndented = true })); 311File.WriteAllText(packageJsonPath, root.ToJsonString(new JsonSerializerOptions { WriteIndented = true }));
Scaffolding\PackageJsonMerger.cs (1)
28private static readonly JsonSerializerOptions s_jsonOptions = new()
Scaffolding\ScaffoldingService.cs (1)
29private static readonly JsonSerializerOptions s_scaffoldJsonSerializerOptions = new()
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
28internal static readonly JsonSerializerOptions s_jsonSerializerOptions = new JsonSerializerOptions
src\Shared\Json\AtsJsonCodeWriter.cs (1)
15private static readonly JsonSerializerOptions s_relaxedJsonOptions = new()
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (2)
89public static JsonSerializerOptions DefaultOptions { get; } = new JsonSerializerOptions 101public static JsonSerializerOptions IndentedOptions { get; } = new JsonSerializerOptions
src\Shared\UserSecrets\UserSecretsJsonOptions.cs (1)
16internal static readonly JsonSerializerOptions s_instance = new()
Utils\ConfigurationHelper.cs (2)
196var cleanJson = node.ToJsonString(new JsonSerializerOptions { WriteIndented = true }); 269var cleanJson = node.ToJsonString(new JsonSerializerOptions { WriteIndented = true });
Aspire.Cli.EndToEnd.Tests (6)
Helpers\TypeScriptAppHostToolchainTestHelpers.cs (1)
17private static readonly JsonSerializerOptions s_packageJsonSerializerOptions = new()
ProjectReferenceTests.cs (1)
122var updatedJson = config.ToJsonString(new JsonSerializerOptions { WriteIndented = true });
TypeScriptEmptyAppHostTemplateTests.cs (1)
184File.WriteAllText(configPath, config.ToJsonString(new JsonSerializerOptions { WriteIndented = true }));
TypeScriptLegacyAppHostTests.cs (1)
141configJson.ToJsonString(new JsonSerializerOptions { WriteIndented = true }));
TypeScriptMigrateAppHostTests.cs (1)
128configJson.ToJsonString(new JsonSerializerOptions { WriteIndented = true }));
TypeScriptPolyglotTests.cs (1)
361File.WriteAllText(Path.Combine(projectRoot, "package.json"), packageJson.ToJsonString(new JsonSerializerOptions { WriteIndented = true }));
Aspire.Cli.Tests (6)
Commands\TelemetryTestHelper.cs (1)
134return node!.ToJsonString(new JsonSerializerOptions
Npm\AspireJsLauncherTests.cs (2)
247JsonSerializer.Serialize(pointerPackageJson, new JsonSerializerOptions { WriteIndented = true })); 268JsonSerializer.Serialize(ridPackageJson, new JsonSerializerOptions { WriteIndented = true }));
Projects\FallbackProjectParserTests.cs (1)
12private static readonly JsonSerializerOptions s_indentedOptions = new() { WriteIndented = true };
Scaffolding\PackageJsonMergerTests.cs (2)
490first.ToJsonString(new JsonSerializerOptions { WriteIndented = true }), 491second.ToJsonString(new JsonSerializerOptions { WriteIndented = true }));
Aspire.Dashboard (9)
Model\BrowserStorage\LocalBrowserStorage.cs (1)
12private static readonly JsonSerializerOptions s_options = new()
Model\GenAI\GenAIItemPartViewModel.cs (1)
23private static readonly JsonSerializerOptions s_jsonSerializerOptions = new()
Model\Interaction\InputViewModel.cs (1)
19private static readonly JsonSerializerOptions s_jsonSerializerOptions = new()
Model\Serialization\ResourceJsonSerializerContext.cs (1)
34public static JsonSerializerOptions IndentedOptions { get; } = new JsonSerializerOptions
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
28private static readonly JsonSerializerOptions s_jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase };
Otlp\Model\OtlpHelpers.cs (1)
23private static readonly JsonSerializerOptions s_jsonSerializerOptions = new JsonSerializerOptions
ServiceClient\DashboardRunStore.cs (1)
77private static readonly JsonSerializerOptions s_jsonOptions = new() { WriteIndented = true };
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (2)
89public static JsonSerializerOptions DefaultOptions { get; } = new JsonSerializerOptions 101public static JsonSerializerOptions IndentedOptions { get; } = new JsonSerializerOptions
Aspire.Dashboard.Tests (1)
Integration\OtlpHttpServiceTests.cs (1)
285var statusResponse = JsonSerializer.Deserialize<StatusResponse>(responseBody, new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase });
Aspire.Hosting (7)
ApplicationModel\Docker\DockerfileStatements.cs (2)
165var options = new JsonSerializerOptions 236var options = new JsonSerializerOptions
Backchannel\AuxiliaryBackchannelService.cs (1)
170formatter.JsonSerializerOptions = new System.Text.Json.JsonSerializerOptions
Dashboard\DashboardEventHandlers.cs (2)
229File.WriteAllText(customConfigPath, JsonSerializer.Serialize(defaultConfig, new JsonSerializerOptions { WriteIndented = true })); 271File.WriteAllText(tempPath, configJson.ToJsonString(new JsonSerializerOptions { WriteIndented = true }));
src\Shared\UserSecrets\UserSecretsJsonOptions.cs (1)
16internal static readonly JsonSerializerOptions s_instance = new()
TerminalResourceBuilderExtensions.cs (1)
371private static readonly JsonSerializerOptions s_metadataSerializerOptions = new()
Aspire.Hosting.Azure (1)
AzureProvisioningJsonHelpers.cs (1)
21private static readonly JsonSerializerOptions s_commandResultJsonSerializerOptions = new()
Aspire.Hosting.Blazor (2)
GatewayConfigurationBuilder.cs (1)
123private static readonly JsonSerializerOptions s_jsonOptions = new()
Manifests\ManifestJsonContext.cs (1)
26internal static ManifestJsonContext Relaxed { get; } = new(new JsonSerializerOptions
Aspire.Hosting.CodeGeneration.Go (1)
src\Shared\Json\AtsJsonCodeWriter.cs (1)
15private static readonly JsonSerializerOptions s_relaxedJsonOptions = new()
Aspire.Hosting.CodeGeneration.Java (1)
src\Shared\Json\AtsJsonCodeWriter.cs (1)
15private static readonly JsonSerializerOptions s_relaxedJsonOptions = new()
Aspire.Hosting.CodeGeneration.Python (1)
src\Shared\Json\AtsJsonCodeWriter.cs (1)
15private static readonly JsonSerializerOptions s_relaxedJsonOptions = new()
Aspire.Hosting.CodeGeneration.Rust (1)
src\Shared\Json\AtsJsonCodeWriter.cs (1)
15private static readonly JsonSerializerOptions s_relaxedJsonOptions = new()
Aspire.Hosting.CodeGeneration.TypeScript (3)
src\Shared\Json\AtsJsonCodeWriter.cs (1)
15private static readonly JsonSerializerOptions s_relaxedJsonOptions = new()
TypeScriptApiExportWriter.cs (1)
70=> Write(model).ToJsonString(new JsonSerializerOptions { WriteIndented = indented });
TypeScriptLanguageSupport.cs (1)
49private static readonly JsonSerializerOptions s_jsonSerializerOptions = new()
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
18private static readonly JsonSerializerOptions s_indentedJsonOptions = new() { WriteIndented = true };
Aspire.Hosting.Radius (1)
Publishing\RadiusDeploymentPipelineStep.cs (1)
289document.ToJsonString(new JsonSerializerOptions { WriteIndented = true }),
Aspire.Hosting.RemoteHost (2)
Ats\AtsMarshaller.cs (1)
59private static readonly JsonSerializerOptions s_jsonOptions = new()
AtsCapabilityScanner.cs (1)
3338private static readonly JsonSerializerOptions s_exportedValueSerializerOptions = new()
Aspire.Hosting.RemoteHost.Tests (3)
AssemblyLoaderTests.cs (1)
262new JsonSerializerOptions
CodeGeneration\ApiReferenceExportTests.cs (1)
274new JsonSerializerOptions
IntegrationLoadContextTests.cs (1)
142new JsonSerializerOptions
Aspire.Hosting.Tests (4)
Dashboard\DashboardEventHandlersTests.cs (4)
597File.WriteAllText(runtimeConfig, JsonSerializer.Serialize(originalConfig, new JsonSerializerOptions { WriteIndented = true })); 680File.WriteAllText(runtimeConfig, JsonSerializer.Serialize(originalConfig, new JsonSerializerOptions { WriteIndented = true })); 749File.WriteAllText(runtimeConfig, JsonSerializer.Serialize(originalConfig, new JsonSerializerOptions { WriteIndented = true })); 816File.WriteAllText(runtimeConfig, JsonSerializer.Serialize(originalConfig, new JsonSerializerOptions { WriteIndented = true }));
Aspire.Hosting.Yarp (1)
YarpJsonConfigGeneratorBuilder.cs (1)
21_serializerOptions = new JsonSerializerOptions()
BasketService (1)
Repositories\RedisBasketRepository.cs (1)
12private static readonly JsonSerializerOptions s_jsonSerializerOptions = new()
cdac-build-tool (1)
DataDescriptorModel.cs (1)
81private static JsonSerializerOptions s_jsonSerializerOptions = new JsonSerializerOptions
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
25private static readonly JsonSerializerOptions s_serializerOptions = new()
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
52private static readonly JsonSerializerOptions s_testSerializerOptions = new() { WriteIndented = true };
dotnet (24)
_generated\100\WorkloadListJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\107\WorkloadSearchVersionsJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\118\WorkloadHistoryJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\126\PackInfoJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\139\NugetSearchApiJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\14\CliSchemaJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\149\SdkVulnerabilityJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\156\SlnfJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\170\TelemetryDiskLoggerJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\177\LocalToolsCacheJsonSerializerContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\187\SdkVulnerabilityCacheJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\32\RunFileApiJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\36\CSharpCompilerCommandJsonSerializerContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\46\RunFileBuildCacheJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\52\RunFileJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\57\SdkCheckJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\69\ToolListJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\74\GlobalJsonWorkloadSetsJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\79\WorkloadManifestUpdaterJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\84\WorkloadInstallJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\92\InstallStateJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
CliSchema.cs (1)
26private static readonly CliSchemaJsonSerializerContext s_jsonContext = new(new JsonSerializerOptions
Commands\Tool\List\ToolListJsonHelper.cs (1)
43public static readonly ToolListJsonSerializerContext JsonContext = new(new JsonSerializerOptions()
ToolPackage\ToolPackageDownloaderBase.cs (1)
22private static readonly JsonSerializerOptions s_writeIndentedOptions = new() { WriteIndented = true };
dotnet-aot (14)
_generated\106\NugetSearchApiJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\113\NugetServiceIndexJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\15\CliSchemaJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\29\TelemetryDiskLoggerJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\34\WorkloadManifestUpdaterJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\44\SdkVulnerabilityJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\54\RunFileBuildCacheJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\62\InstallStateJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\67\SdkCheckJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\74\SlnfJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\81\LocalToolsCacheJsonSerializerContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\93\ToolListJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
src\sdk\src\Cli\dotnet\CliSchema.cs (1)
26private static readonly CliSchemaJsonSerializerContext s_jsonContext = new(new JsonSerializerOptions
src\sdk\src\Cli\dotnet\Commands\Tool\List\ToolListJsonHelper.cs (1)
43public static readonly ToolListJsonSerializerContext JsonContext = new(new JsonSerializerOptions()
dotnet-dev-certs (1)
_generated\7\DevCertsJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
dotnet-format (1)
ReportWriter.cs (1)
23var seralizerOptions = new JsonSerializerOptions
dotnet-user-jwts (2)
_generated\12\JwtSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Helpers\JwtSerializerOptions.cs (1)
12public static JsonSerializerOptions Default { get; } = new()
dotnet-user-secrets (1)
_generated\2\SecretManagerJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Infrastructure.Tests (10)
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (2)
672entries = JsonSerializer.Deserialize<ExpandedMatrixEntry[]>(include.GetRawText(), new JsonSerializerOptions 679var singleEntry = JsonSerializer.Deserialize<ExpandedMatrixEntry>(include.GetRawText(), new JsonSerializerOptions
PowerShellScripts\SplitTestMatrixByDepsTests.cs (2)
331entries = JsonSerializer.Deserialize<ExpandedMatrixEntry[]>(include.GetRawText(), new JsonSerializerOptions 338var singleEntry = JsonSerializer.Deserialize<ExpandedMatrixEntry>(include.GetRawText(), new JsonSerializerOptions
PowerShellScripts\SplitTestProjectsTests.cs (1)
205return JsonSerializer.Deserialize<TestPartitionsJson>(json, new JsonSerializerOptions
Shared\TestDataBuilder.cs (1)
14private static readonly JsonSerializerOptions s_jsonOptions = new()
WorkflowScripts\MonitorScheduledWorkflowsIntegrationTests.cs (1)
23private static readonly JsonSerializerOptions s_requestOptions = new();
WorkflowScripts\ReportCiFailureIntegrationTests.cs (1)
23private static readonly JsonSerializerOptions s_requestOptions = new();
WorkflowScripts\ReportPipelineFailureIntegrationTests.cs (1)
23private static readonly JsonSerializerOptions s_requestOptions = new();
WorkflowScripts\SpecializedTestFailureRunnerTests.cs (1)
24private static readonly JsonSerializerOptions s_requestOptions = new();
Microsoft.AspNetCore.Authentication.BearerToken (1)
_generated\4\BearerTokenJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (1)
_generated\10\DeviceBoundSessionJsonContext.g.cs (1)
17private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Microsoft.AspNetCore.Authentication.Twitter (2)
_generated\6\TwitterJsonContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
TwitterHandler.cs (1)
405public static readonly TwitterJsonContext DefaultWithOptions = new TwitterJsonContext(new JsonSerializerOptions
Microsoft.AspNetCore.Components (2)
_generated\4\PersistentServicesRegistryJsonContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
src\aspnetcore\src\Components\Shared\src\JsonSerializerOptionsProvider.cs (1)
16var options = new JsonSerializerOptions
Microsoft.AspNetCore.Components.AI (1)
Components\MessageListContext.cs (1)
17private static readonly JsonSerializerOptions IndentedJsonOptions = new()
Microsoft.AspNetCore.Components.Endpoints (8)
_generated\14\ResourceCollectionSerializerContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\33\BrowserOptionsJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\5\ImportMapSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\52\ServerComponentJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\58\PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Assets\ImportMapSerializerContext.cs (1)
15public static ImportMapSerializerContext CustomEncoder => _customEncoder ??= new(new JsonSerializerOptions
src\aspnetcore\src\Shared\Components\ServerComponentSerializationSettings.cs (1)
19var options = new JsonSerializerOptions
src\aspnetcore\src\Shared\Components\WebAssemblyComponentSerializationSettings.cs (1)
12new JsonSerializerOptions
Microsoft.AspNetCore.Components.Server (6)
_generated\13\CircuitPersistenceManagerSerializerContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\3\JavaScriptInitializersManifestJsonContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\38\ServerComponentJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\44\PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
src\aspnetcore\src\Components\Shared\src\JsonSerializerOptionsProvider.cs (1)
16var options = new JsonSerializerOptions
src\aspnetcore\src\Shared\Components\ServerComponentSerializationSettings.cs (1)
19var options = new JsonSerializerOptions
Microsoft.AspNetCore.Components.Server.AutoPause (1)
_generated\2\AutoPauseJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.AspNetCore.Components.Testing (1)
_generated\8\E2EManifestJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.AspNetCore.Components.Web (1)
_generated\15\WebRendererSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.AspNetCore.Components.WebAssembly (4)
_generated\20\WebAssemblyJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\26\PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
src\aspnetcore\src\Components\Shared\src\JsonSerializerOptionsProvider.cs (1)
16var options = new JsonSerializerOptions
src\aspnetcore\src\Shared\Components\WebAssemblyComponentSerializationSettings.cs (1)
12new JsonSerializerOptions
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
_generated\9\InteractiveRequestOptionsSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
TargetPickerUi.cs (1)
23private static readonly JsonSerializerOptions JsonOptions = new JsonSerializerOptions
Microsoft.AspNetCore.Components.WebView (3)
_generated\11\SourceGenerationContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
src\aspnetcore\src\Components\Shared\src\JsonSerializerOptionsProvider.cs (1)
16var options = new JsonSerializerOptions
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
330public static readonly SourceGenerationContext DefaultWithConverter = new SourceGenerationContext(new JsonSerializerOptions
Microsoft.AspNetCore.Diagnostics (1)
_generated\7\ExtensionsExceptionJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\JsonConverterHelper.cs (1)
44var options = new JsonSerializerOptions
Microsoft.AspNetCore.Hosting (2)
_generated\11\SourceGenerationContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
330public static readonly SourceGenerationContext DefaultWithConverter = new SourceGenerationContext(new JsonSerializerOptions
Microsoft.AspNetCore.Http.Extensions (1)
_generated\11\ProblemDetailsJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.AspNetCore.Identity (1)
_generated\18\IdentityEndpointsJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Internal\DictionaryAdapterOfTU.cs (1)
203var options = new JsonSerializerOptions() { NumberHandling = System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString };
Microsoft.AspNetCore.Mvc.Testing (1)
_generated\2\CustomJsonSerializerContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.AspNetCore.OpenApi (1)
_generated\6\OpenApiJsonSchemaContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
925return new JsonSerializerOptions()
Microsoft.AspNetCore.StaticAssets (1)
_generated\12\StaticAssetsManifestJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
src\sdk\src\Dotnet.Watch\Web.Middleware\BlazorWasmHotReloadMiddleware.cs (1)
38private static readonly JsonSerializerOptions s_jsonSerializerOptions = new()
Microsoft.Build (1)
_generated\7\TasksDetailsJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Microsoft.CodeAnalysis.Features (1)
Intents\IntentDataProvider.cs (1)
17var serializerOptions = new JsonSerializerOptions
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
JsonSettings.cs (1)
17public static readonly JsonSerializerOptions SingleLineSerializerOptions = new()
Microsoft.DotNet.Cli.Definitions (1)
_generated\3\GlobalJsonSerializerContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Microsoft.DotNet.Cli.Telemetry (1)
_generated\21\TelemetryJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.DotNet.CMake.Sdk (1)
src\GetCMakeArtifactsFromFileApi.cs (1)
67var options = new JsonSerializerOptions
Microsoft.DotNet.HotReload.Utils.Generator (1)
Script\Json\Parsing.cs (1)
25var options = new JsonSerializerOptions {
Microsoft.DotNet.HotReload.Utils.Generator.Tasks (1)
HotReloadDeltaGeneratorComputeScriptOutputs.cs (1)
133var options = new JsonSerializerOptions {
Microsoft.DotNet.HotReload.Watch (2)
src\sdk\src\Dotnet.Watch\AspireService\AspireServerService.cs (1)
65public static readonly JsonSerializerOptions JsonSerializerOptions = new()
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetsManifest.cs (1)
19private static readonly JsonSerializerOptions s_options = new()
Microsoft.DotNet.HotReload.WebAssembly.Browser (1)
_generated\9\WebAssemblyHotReloadJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.DotNet.ProjectTools (1)
_generated\5\LaunchProfileJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Microsoft.DotNet.TemplateLocator (2)
_generated\11\InstallStateJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\3\WorkloadSetJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Microsoft.DotNet.XliffTasks (1)
Model\JsonDocument.cs (1)
16private static readonly JsonSerializerOptions s_serializerOptions = new()
Microsoft.Extensions.AI (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OtelContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Microsoft.Extensions.AI.Abstractions.Tests (17)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Context.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
parent\parent\Shared\JsonSchemaExporter\TestTypes.cs (1)
548Options: new() { UnmappedMemberHandling = JsonUnmappedMemberHandling.Disallow });
Utilities\AIJsonUtilitiesTests.cs (12)
647JsonSerializerOptions options = new() { TypeInfoResolver = new DefaultJsonTypeInfoResolver() }; 702JsonSerializerOptions options = new() { WriteIndented = true }; 1232JsonSerializerOptions options = new() 1257JsonSerializerOptions options = new(); 1266JsonSerializerOptions options = new(); 1274JsonSerializerOptions options = new() 1288JsonSerializerOptions options = new(); 1301JsonSerializerOptions options = new() 1353JsonSerializerOptions options = new() 1398JsonSerializerOptions options = new() 1445JsonSerializerOptions options = new() 1473JsonSerializerOptions customOptions = new()
Microsoft.Extensions.AI.Evaluation.Quality (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\SerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Microsoft.Extensions.AI.Evaluation.Safety (1)
EvaluationMetricExtensions.cs (1)
99string serializedData = data.ToJsonString(new JsonSerializerOptions { WriteIndented = true });
Microsoft.Extensions.AI.Stabilization.Tests (1)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.Extensions.AI.Tests (6)
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
32var jso = new JsonSerializerOptions();
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\CustomAIContentJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext2.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Realtime\LoggingRealtimeClientTests.cs (1)
449var customOptions = new System.Text.Json.JsonSerializerOptions();
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultJsonSerializerFactory.cs (1)
19internal static JsonSerializerOptions FieldEnabledJsonOptions { get; } = new() { IncludeFields = true };
Microsoft.Extensions.Caching.Hybrid.Tests (2)
SerializerTests.cs (2)
245globalOptions = new() { IncludeFields = true }; // assume any custom options will serialize the whole type 251perTypeOptions = new() { IncludeFields = true }; // assume any custom options will serialize the whole type
Microsoft.JSInterop (1)
JSRuntime.cs (1)
34JsonSerializerOptions = new JsonSerializerOptions
Microsoft.ML.AutoML.Interactive (4)
AutoMLMonitorKernelExtension.cs (3)
25Formatter.Register<Parameter>((parameter) => JsonSerializer.Serialize(parameter, new JsonSerializerOptions() { WriteIndented = true, })); 52var bestTrialParam = JsonSerializer.Serialize(monitor.BestTrial.TrialSettings.Parameter, new JsonSerializerOptions() { WriteIndented = true, }); 61var activeTrialParam = JsonSerializer.Serialize(monitor.ActiveTrial.Parameter, new JsonSerializerOptions() { WriteIndented = true, });
NotebookMonitor.cs (1)
47var activeRunParam = JsonSerializer.Serialize(result.TrialSettings.Parameter, new JsonSerializerOptions() { WriteIndented = false, });
Microsoft.ML.AutoML.Tests (4)
AutoFeaturizerTests.cs (1)
26_jsonSerializerOptions = new JsonSerializerOptions()
SweepableEstimatorPipelineTest.cs (1)
29_jsonSerializerOptions = new JsonSerializerOptions()
SweepableExtensionTest.cs (1)
29_jsonSerializerOptions = new JsonSerializerOptions()
SweepablePipelineTests.cs (1)
26_jsonSerializerOptions = new JsonSerializerOptions()
Microsoft.ML.GenAI.Phi.Tests (1)
Phi3Tests.cs (1)
109var json = JsonSerializer.Serialize(sizeInMB, new JsonSerializerOptions { WriteIndented = true });
Microsoft.ML.GenAI.Samples (1)
Mistral_7B_Instruct_80b1387b-dce1-4c6d-9337-b7c53302f8cc.generated.cs (1)
27new JsonSerializerOptions
Microsoft.ML.SearchSpace (1)
Parameter.cs (1)
65private readonly JsonSerializerOptions _settings = new JsonSerializerOptions()
Microsoft.ML.SearchSpace.Tests (2)
ParameterTest.cs (1)
21private readonly JsonSerializerOptions _settings = new JsonSerializerOptions()
SearchSpaceTest.cs (1)
24private readonly JsonSerializerOptions _settings = new JsonSerializerOptions()
Microsoft.ML.Tokenizers (1)
ModelSourceGenerationContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.NET.Build.Containers (2)
ImageIndexGenerator.cs (2)
133var nullIgnoreOptions = new JsonSerializerOptions 138var escapeOptions = new JsonSerializerOptions
Microsoft.NET.Build.Tasks (3)
_generated\13\WorkloadSetJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\21\InstallStateJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\7\SdkVulnerabilitySummaryContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.NET.HostModel (1)
ComHost\ClsidMap.cs (1)
21private static readonly JsonSerializerOptions s_jsonOptions = new JsonSerializerOptions { DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull };
Microsoft.NET.Sdk.Publish.Tasks (4)
AppSettingsTransform.cs (2)
65new JsonSerializerOptions 74new JsonSerializerOptions
Tasks\Http\HttpClientExtensions.cs (1)
17private static readonly JsonSerializerOptions s_defaultSerializerOptions = new()
Tasks\ZipDeploy\ZipDeploymentStatus.cs (1)
121new JsonSerializerOptions
Microsoft.NET.Sdk.StaticWebAssets.Tasks (9)
_generated\29\StaticWebAssetsJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\42\DefineStaticWebAssetsSerializerContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\49\ImportMapSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Data\Serialization\StaticWebAssetsJsonSerializerContext.cs (1)
21private static readonly JsonSerializerOptions ManifestSerializationOptions = new()
Data\StaticAssetsManifest.cs (1)
201private static readonly JsonSerializerOptions _debuggerDisplayJsonOptions = new() { WriteIndented = true };
JSModules\GenerateJSModuleManifest.cs (1)
15private static readonly JsonSerializerOptions ManifestSerializationOptions = new()
OverrideHtmlAssetPlaceholders.cs (1)
308public static ImportMapSerializerContext CustomEncoder => _customEncoder ??= new(new JsonSerializerOptions
ServiceWorker\GenerateServiceWorkerAssetsManifest.cs (1)
15private static readonly JsonSerializerOptions ManifestSerializationOptions = new()
StaticWebAssetsGeneratePackManifest.cs (1)
19private static readonly JsonSerializerOptions ManifestSerializationOptions = new()
Microsoft.NET.Sdk.WorkloadManifestReader (2)
_generated\11\InstallStateJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\3\WorkloadSetJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Microsoft.TemplateEngine.Cli (1)
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (1)
26private static readonly JsonSerializerOptions SerializerOptions = new()
Microsoft.TemplateEngine.Edge (4)
_generated\17\SettingsStoreJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\43\TemplateCacheJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\7\GlobalSettingsJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (1)
20private static readonly JsonSerializerOptions SerializerOptions = new()
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (3)
_generated\1\JsonEncodeSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (1)
20private static readonly JsonSerializerOptions SerializerOptions = new()
ValueForms\JsonEncodeValueFormFactory.cs (1)
17private static readonly JsonEncodeSerializerContext JsonEncodeContext = new(new JsonSerializerOptions
Microsoft.TemplateEngine.Utils (1)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (1)
20private static readonly JsonSerializerOptions SerializerOptions = new()
Microsoft.TemplateSearch.Common (1)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (1)
20private static readonly JsonSerializerOptions SerializerOptions = new()
Microsoft.TestPlatform.CommunicationUtilities (2)
_generated\103\TestPlatformJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
JsonDataSerializer.Stj.cs (1)
66private static JsonSerializerOptions CreateBaseOptions() => new()
MSBuild (2)
JsonOutputFormatter.cs (1)
19private static readonly JsonSerializerOptions s_options = new() { AllowTrailingCommas = false, WriteIndented = true };
XMake.cs (1)
4730var options = new JsonSerializerOptions() { AllowTrailingCommas = false, WriteIndented = true };
NuGet.CommandLine.XPlat (2)
_generated\35\PackageSearchJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Commands\PackageSearch\PackageSearchResultJsonRenderer.cs (1)
51var options = new JsonSerializerOptions
NuGet.Credentials (1)
_generated\4\PluginCredentialResponseJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
NuGet.Packaging (2)
_generated\3\NupkgMetadataSerializationContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
NupkgMetadata\NupkgMetadataFileFormat.cs (1)
18private static readonly JsonSerializerOptions JsonSerializerOptions = new JsonSerializerOptions()
NuGet.ProjectModel (3)
_generated\11\CacheFileSourceGen.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\22\AssetsLogMessageSourceGen.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
CacheFileFormat.cs (1)
24private static JsonSerializerOptions SerializerOptions = new JsonSerializerOptions
NuGet.Protocol (5)
_generated\142\JsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\154\RepositorySignatureJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\35\PackageSearchJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\40\PluginCacheJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\94\PluginJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
rzc (1)
Json\TagHelperDescriptorJsonConverter.cs (1)
21var options = new JsonSerializerOptions();
sdk-tasks (4)
_generated\4\SdkTasksJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
PublishMutationUtilities.cs (1)
13private static readonly JsonSerializerOptions s_writeOptions = new() { WriteIndented = true };
RemoveAssetFromDepsPackages.cs (1)
14private static readonly JsonSerializerOptions s_writeOptions = new() { WriteIndented = true };
UpdateRuntimeConfig.cs (1)
13private static readonly JsonSerializerOptions s_writeOptions = new() { WriteIndented = true };
SelectTests (1)
Program.cs (1)
656File.WriteAllText(jsonPath, root.ToJsonString(new System.Text.Json.JsonSerializerOptions { WriteIndented = true }));
Shared.Tests (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Context.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
JsonSchemaExporter\TestTypes.cs (1)
548Options: new() { UnmappedMemberHandling = JsonUnmappedMemberHandling.Disallow });
Stress.AppHost (4)
CommandResources.cs (3)
1139var json = JsonSerializer.Serialize(token, new JsonSerializerOptions { WriteIndented = true }); 1174var json = JsonSerializer.Serialize(errors, new JsonSerializerOptions { WriteIndented = true }); 1231return JsonSerializer.Serialize(payload, new JsonSerializerOptions { WriteIndented = true });
InteractionCommands.cs (1)
1076var json = JsonSerializer.Serialize(fileDetails, new JsonSerializerOptions { WriteIndented = true });
System.Text.Json (3)
System\Text\Json\Nodes\JsonNode.cs (1)
20private protected static readonly JsonSerializerOptions s_defaultOptions = new();
System\Text\Json\Serialization\JsonSerializerContext.cs (1)
31options = new JsonSerializerOptions { TypeInfoResolver = this };
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
174public JsonSerializerOptions(JsonSerializerDefaults defaults) : this()