194 references to JsonSerializerOptions
aspire (13)
Commands\DescribeCommand.cs (2)
48public static ResourcesCommandJsonContext RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions 59public static ResourcesCommandJsonContext Ndjson => s_ndjson ??= new(new JsonSerializerOptions
Commands\LogsCommand.cs (2)
52new JsonSerializerOptions 64new JsonSerializerOptions
Commands\PsCommand.cs (1)
53public static PsCommandJsonContext RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions
Commands\RunCommand.cs (1)
47public static RunCommandJsonContext RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions
JsonSourceGenerationContext.cs (1)
51public static JsonSourceGenerationContext RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions
Mcp\Tools\ListResourcesTool.cs (1)
33public static ListResourcesToolJsonContext RelaxedEscaping => s_relaxedEscaping ??= new(new JsonSerializerOptions
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
28private static readonly JsonSerializerOptions s_jsonSerializerOptions = new JsonSerializerOptions
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (2)
84public static JsonSerializerOptions DefaultOptions { get; } = new JsonSerializerOptions 96public static JsonSerializerOptions IndentedOptions { get; } = new JsonSerializerOptions
src\Shared\UserSecrets\SecretsStore.cs (1)
16internal static readonly JsonSerializerOptions s_jsonOptions = new()
Utils\ConfigurationHelper.cs (1)
119var cleanJson = node.ToJsonString(new JsonSerializerOptions { WriteIndented = true });
Aspire.Cli.EndToEnd.Tests (1)
ProjectReferenceTests.cs (1)
125var updatedJson = config.ToJsonString(new JsonSerializerOptions { WriteIndented = true });
Aspire.Cli.Tests (1)
Projects\FallbackProjectParserTests.cs (1)
13private static readonly JsonSerializerOptions s_indentedOptions = new() { WriteIndented = true };
Aspire.Dashboard (9)
Model\Assistant\AIHelpers.cs (1)
43private static readonly JsonSerializerOptions s_jsonSerializerOptions = new JsonSerializerOptions
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\Serialization\ResourceJsonSerializerContext.cs (1)
31public 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)
22private static readonly JsonSerializerOptions s_jsonSerializerOptions = new JsonSerializerOptions
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
28private static readonly JsonSerializerOptions s_jsonSerializerOptions = new JsonSerializerOptions
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (2)
84public static JsonSerializerOptions DefaultOptions { get; } = new JsonSerializerOptions 96public static JsonSerializerOptions IndentedOptions { get; } = new JsonSerializerOptions
Aspire.Dashboard.Tests (1)
Integration\OtlpHttpServiceTests.cs (1)
279var 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)
158formatter.JsonSerializerOptions = new System.Text.Json.JsonSerializerOptions
Dashboard\DashboardEventHandlers.cs (2)
232File.WriteAllText(customConfigPath, JsonSerializer.Serialize(defaultConfig, new JsonSerializerOptions { WriteIndented = true })); 274File.WriteAllText(tempPath, configJson.ToJsonString(new JsonSerializerOptions { WriteIndented = true }));
Pipelines\Internal\DeploymentStateManagerBase.cs (1)
35protected static readonly JsonSerializerOptions s_jsonSerializerOptions = new()
UserSecrets\UserSecretsManagerFactory.cs (1)
82private static readonly JsonSerializerOptions s_jsonSerializerOptions = new() { WriteIndented = true };
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
187var formattedResponse = $"```\n{JsonSerializer.Serialize(response, new JsonSerializerOptions { WriteIndented = true })}\n```";
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
57private static readonly JsonSerializerOptions s_jsonOptions = new()
Aspire.Hosting.Tests (4)
Dashboard\DashboardLifecycleHookTests.cs (4)
310File.WriteAllText(runtimeConfig, JsonSerializer.Serialize(originalConfig, new JsonSerializerOptions { WriteIndented = true })); 393File.WriteAllText(runtimeConfig, JsonSerializer.Serialize(originalConfig, new JsonSerializerOptions { WriteIndented = true })); 462File.WriteAllText(runtimeConfig, JsonSerializer.Serialize(originalConfig, new JsonSerializerOptions { WriteIndented = true })); 529File.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 (23)
_generated\104\WorkloadSearchVersionsJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\115\WorkloadHistoryJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\123\PackInfoJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\136\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\146\SdkVulnerabilityJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\153\SlnfJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\167\TelemetryDiskLoggerJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\174\LocalToolsCacheJsonSerializerContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\184\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\49\RunFileJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\54\SdkCheckJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\66\ToolListJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\71\GlobalJsonWorkloadSetsJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\76\WorkloadInstallJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\81\WorkloadManifestUpdaterJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\89\InstallStateJsonSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\97\WorkloadListJsonSerializerContext.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-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\11\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 (6)
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (2)
673entries = JsonSerializer.Deserialize<ExpandedMatrixEntry[]>(include.GetRawText(), new JsonSerializerOptions 680var singleEntry = JsonSerializer.Deserialize<ExpandedMatrixEntry>(include.GetRawText(), new JsonSerializerOptions
PowerShellScripts\SplitTestMatrixByDepsTests.cs (2)
330entries = JsonSerializer.Deserialize<ExpandedMatrixEntry[]>(include.GetRawText(), new JsonSerializerOptions 337var singleEntry = JsonSerializer.Deserialize<ExpandedMatrixEntry>(include.GetRawText(), new JsonSerializerOptions
PowerShellScripts\SplitTestProjectsTests.cs (1)
204return JsonSerializer.Deserialize<TestPartitionsJson>(json, new JsonSerializerOptions
Shared\TestDataBuilder.cs (1)
14private static readonly JsonSerializerOptions s_jsonOptions = 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.Components (1)
src\aspnetcore\src\Components\Shared\src\JsonSerializerOptionsProvider.cs (1)
10public static readonly JsonSerializerOptions Options = new()
Microsoft.AspNetCore.Components.Endpoints (8)
_generated\14\ResourceCollectionSerializerContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new()
_generated\27\BrowserConfigurationJsonContext.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\61\JsonTempDataSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\67\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)
14new JsonSerializerOptions
src\aspnetcore\src\Shared\Components\WebAssemblyComponentSerializationSettings.cs (1)
12new JsonSerializerOptions
Microsoft.AspNetCore.Components.Server (4)
_generated\14\PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
_generated\8\CircuitPersistenceManagerSerializerContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
src\aspnetcore\src\Components\Shared\src\JsonSerializerOptionsProvider.cs (1)
10public static readonly JsonSerializerOptions Options = new()
src\aspnetcore\src\Shared\Components\ServerComponentSerializationSettings.cs (1)
14new JsonSerializerOptions
Microsoft.AspNetCore.Components.Web (1)
_generated\10\WebRendererSerializerContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
Microsoft.AspNetCore.Diagnostics (1)
_generated\7\ExtensionsExceptionJsonContext.g.cs (1)
14private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = new();
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\17\IdentityEndpointsJsonSerializerContext.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.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.Diagnostics.DataContractReader (1)
_generated\13\ContractDescriptorContext.g.cs (1)
16private readonly static global::System.Text.Json.JsonSerializerOptions s_defaultOptions = 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.CMake.Sdk (1)
src\GetCMakeArtifactsFromFileApi.cs (1)
68var 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.Abstractions.Tests (8)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
548Options: new() { UnmappedMemberHandling = JsonUnmappedMemberHandling.Disallow });
Utilities\AIJsonUtilitiesTests.cs (7)
626JsonSerializerOptions options = new() { WriteIndented = true }; 1162JsonSerializerOptions options = new() 1187JsonSerializerOptions options = new(); 1196JsonSerializerOptions options = new(); 1204JsonSerializerOptions options = new() 1218JsonSerializerOptions options = new(); 1229JsonSerializerOptions customOptions = new()
Microsoft.Extensions.AI.Evaluation.Safety (1)
EvaluationMetricExtensions.cs (1)
99string serializedData = data.ToJsonString(new JsonSerializerOptions { WriteIndented = true });
Microsoft.Extensions.AI.Tests (1)
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
32var jso = new 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)
33JsonSerializerOptions = 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_1390cd9b-58e7-450e-8281-cfb73a6ee178.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)
126var nullIgnoreOptions = new JsonSerializerOptions 131var 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)
18private 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.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 (1)
JsonDataSerializer.Stj.cs (1)
65private static JsonSerializerOptions CreateBaseOptions() => new()
MSBuild (2)
JsonOutputFormatter.cs (1)
20private static readonly JsonSerializerOptions s_options = new() { AllowTrailingCommas = false, WriteIndented = true };
XMake.cs (1)
4278var 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.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 };
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
548Options: new() { UnmappedMemberHandling = JsonUnmappedMemberHandling.Disallow });
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)
172public JsonSerializerOptions(JsonSerializerDefaults defaults) : this()