84 writes to WriteIndented
aspire (1)
JsonSourceGenerationContext.g.cs (1)
16WriteIndented = true,
Aspire.Dashboard (2)
McpConfigFileModelContext.g.cs (1)
18WriteIndented = true,
Otlp\Model\OtlpHelpers.cs (1)
24WriteIndented = false
Aspire.Hosting (4)
Dashboard\DashboardEventHandlers.cs (2)
230File.WriteAllText(customConfigPath, JsonSerializer.Serialize(defaultConfig, new JsonSerializerOptions { WriteIndented = true })); 272File.WriteAllText(tempPath, configJson.ToJsonString(new JsonSerializerOptions { WriteIndented = true }));
Publishing\Internal\DeploymentStateManagerBase.cs (1)
36WriteIndented = true
src\Shared\SecretsStore.cs (1)
72WriteIndented = true
Aspire.Hosting.Tests (4)
Dashboard\DashboardLifecycleHookTests.cs (4)
229File.WriteAllText(runtimeConfig, JsonSerializer.Serialize(originalConfig, new JsonSerializerOptions { WriteIndented = true })); 317File.WriteAllText(runtimeConfig, JsonSerializer.Serialize(originalConfig, new JsonSerializerOptions { WriteIndented = true })); 389File.WriteAllText(runtimeConfig, JsonSerializer.Serialize(originalConfig, new JsonSerializerOptions { WriteIndented = true })); 459File.WriteAllText(runtimeConfig, JsonSerializer.Serialize(originalConfig, new JsonSerializerOptions { WriteIndented = true }));
Aspire.Hosting.Yarp (1)
YarpJsonConfigGeneratorBuilder.cs (1)
23WriteIndented = true,
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
27WriteIndented = true,
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
52private static readonly JsonSerializerOptions s_testSerializerOptions = new() { WriteIndented = true };
dotnet (9)
CliSchema.cs (1)
26WriteIndented = true,
Commands\Workload\GlobalJsonWorkloadSetFile.cs (1)
17WriteIndented = true,
Commands\Workload\Install\FileBasedInstaller.cs (1)
634File.WriteAllText(logFile, JsonSerializer.Serialize(workloadHistoryRecord, new JsonSerializerOptions() { WriteIndented = true }));
Commands\Workload\Install\MsiInstallerBase.cs (2)
41WriteIndented = true, 385File.WriteAllText(logFile, JsonSerializer.Serialize(workloadHistoryRecord, new JsonSerializerOptions() { WriteIndented = true }));
Commands\Workload\Install\WorkloadInstallCommand.cs (1)
132Reporter.WriteLine(JsonSerializer.Serialize(packageUrls, new JsonSerializerOptions() { WriteIndented = true }));
Commands\Workload\InstallStateContents.cs (1)
29WriteIndented = true,
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (1)
139}, new JsonSerializerOptions { WriteIndented = true }));
Commands\Workload\Update\WorkloadUpdateCommand.cs (1)
96Reporter.WriteLine(JsonSerializer.Serialize(packageUrls, new JsonSerializerOptions() { WriteIndented = true }));
dotnet-dev-certs (1)
Program.cs (1)
367reporter.Output(JsonSerializer.Serialize(certReports, options: new JsonSerializerOptions { WriteIndented = true }));
dotnet-format (1)
ReportWriter.cs (1)
24WriteIndented = true
dotnet-MsiInstallation.Tests (1)
Framework\VirtualMachine.cs (1)
139WriteIndented = true,
dotnet-new.IntegrationTests (1)
DotnetNewTestTemplatesTests.cs (1)
342WriteIndented = true,
dotnet-user-jwts (1)
Helpers\JwtSerializerOptions.cs (1)
14WriteIndented = true,
InMemory.FunctionalTests (1)
EventSourceTests.cs (1)
462WriteIndented = true
Microsoft.AspNetCore.Authentication.Core.Test (1)
AuthenticationPropertiesTests.cs (1)
375var options = new JsonSerializerOptions() { WriteIndented = true }; // Indented for readability if test fails
Microsoft.AspNetCore.Components.Endpoints (2)
Assets\ImportMapSerializerContext.cs (1)
17WriteIndented = true,
ResourceCollectionSerializerContext.g.cs (1)
19WriteIndented = false,
Microsoft.AspNetCore.Components.Tests (3)
ResourceAssetCollectionTest.cs (3)
97var options = new JsonSerializerOptions { WriteIndented = true }; 116WriteIndented = true, 141WriteIndented = false,
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\JsonConverterHelper.cs (1)
46WriteIndented = writeIndented,
Microsoft.AspNetCore.Http.Results.Tests (1)
JsonResultTests.cs (1)
86WriteIndented = true,
Microsoft.AspNetCore.Identity.Test (1)
Passkeys\PasskeyScenarioTest.cs (1)
81WriteIndented = true,
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\JsonResultExecutorTestBase.cs (1)
184new JsonSerializerOptions { WriteIndented = true }));
Infrastructure\SystemTextJsonResultExecutorTest.cs (1)
38return new JsonSerializerOptions { WriteIndented = true };
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (1)
184new JsonSerializerOptions { WriteIndented = true }));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Rendering\SystemTextJsonHelperTest.cs (1)
68WriteIndented = true,
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
927WriteIndented = false,
Microsoft.DotNet.Build.Tasks.Workloads (1)
Msi\WorkloadManifestMsi.wix.cs (1)
79string jsonAsString = JsonSerializer.Serialize(WorkloadPackGroups, typeof(IList<WorkloadPackGroupJson>), new JsonSerializerOptions() { WriteIndented = true });
Microsoft.DotNet.MSBuildSdkResolver (2)
InstallStateContents.cs (1)
29WriteIndented = true,
WorkloadSet.cs (1)
123var json = JsonSerializer.Serialize(ToDictionaryForJson(), new JsonSerializerOptions() { WriteIndented = true });
Microsoft.DotNet.TemplateLocator (2)
InstallStateContents.cs (1)
29WriteIndented = true,
WorkloadSet.cs (1)
123var json = JsonSerializer.Serialize(ToDictionaryForJson(), new JsonSerializerOptions() { WriteIndented = true });
Microsoft.DotNet.XliffTasks (1)
Model\JsonDocument.cs (1)
18WriteIndented = true,
Microsoft.Extensions.AI.Abstractions.Tests (3)
Utilities\AIJsonUtilitiesTests.cs (3)
506JsonSerializerOptions options = new() { WriteIndented = true }; 1131JsonSerializerOptions indentOptions = new(AIJsonUtilities.DefaultOptions) { WriteIndented = true }; 1132JsonSerializerOptions noIndentOptions = new(AIJsonUtilities.DefaultOptions) { WriteIndented = false };
Microsoft.Extensions.AI.Evaluation.Reporting (1)
JsonSerialization\JsonUtilities.cs (1)
36WriteIndented = writeIndented,
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
JsonSerialization\AzureStorageJsonUtilities.cs (1)
33WriteIndented = writeIndented,
Microsoft.Extensions.AI.Evaluation.Safety (1)
EvaluationMetricExtensions.cs (1)
99string serializedData = data.ToJsonString(new JsonSerializerOptions { WriteIndented = true });
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
38WriteIndented = true,
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)
28WriteIndented = true,
SweepableEstimatorPipelineTest.cs (1)
31WriteIndented = true,
SweepableExtensionTest.cs (1)
31WriteIndented = true,
SweepablePipelineTests.cs (1)
28WriteIndented = true,
Microsoft.ML.GenAI.Phi.Tests (1)
Phi3Tests.cs (1)
109var json = JsonSerializer.Serialize(sizeInMB, new JsonSerializerOptions { WriteIndented = true });
Microsoft.ML.SearchSpace (1)
Parameter.cs (1)
67WriteIndented = true,
Microsoft.ML.SearchSpace.Tests (2)
ParameterTest.cs (1)
23WriteIndented = true,
SearchSpaceTest.cs (1)
26WriteIndented = true,
Microsoft.NET.Build.Containers.UnitTests (1)
DescriptorTests.cs (1)
18Console.WriteLine(JsonSerializer.Serialize(d, new JsonSerializerOptions { WriteIndented = true }));
Microsoft.NET.Build.Tasks (2)
InstallStateContents.cs (1)
29WriteIndented = true,
WorkloadSet.cs (1)
123var json = JsonSerializer.Serialize(ToDictionaryForJson(), new JsonSerializerOptions() { WriteIndented = true });
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (1)
AspNetSdkBaselineTest.cs (1)
16private static readonly JsonSerializerOptions BaselineSerializationOptions = new() { WriteIndented = true };
Microsoft.NET.Sdk.Publish.Tasks (1)
AppSettingsTransform.cs (1)
67WriteIndented = true
Microsoft.NET.Sdk.StaticWebAssets.Tasks (5)
Data\StaticAssetsManifest.cs (1)
201private static readonly JsonSerializerOptions _debuggerDisplayJsonOptions = new() { WriteIndented = true };
JSModules\GenerateJSModuleManifest.cs (1)
18WriteIndented = true
OverrideHtmlAssetPlaceholders.cs (1)
310WriteIndented = true,
ServiceWorker\GenerateServiceWorkerAssetsManifest.cs (1)
19WriteIndented = true
StaticWebAssetsGeneratePackManifest.cs (1)
21WriteIndented = true
Microsoft.NET.Sdk.StaticWebAssets.Tests (1)
AspNetSdkBaselineTest.cs (1)
16private static readonly JsonSerializerOptions BaselineSerializationOptions = new() { WriteIndented = true };
Microsoft.NET.Sdk.WorkloadManifestReader (2)
InstallStateContents.cs (1)
29WriteIndented = true,
WorkloadSet.cs (1)
123var json = JsonSerializer.Serialize(ToDictionaryForJson(), new JsonSerializerOptions() { WriteIndented = true });
Microsoft.TemplateEngine.Cli (1)
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (1)
27WriteIndented = true
MSBuild (2)
JsonOutputFormatter.cs (1)
20private static readonly JsonSerializerOptions s_options = new() { AllowTrailingCommas = false, WriteIndented = true };
XMake.cs (1)
4664var options = new JsonSerializerOptions() { AllowTrailingCommas = false, WriteIndented = true };
7 references to WriteIndented
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Defaults.cs (1)
28/// <item>Enables the <see cref="JsonSerializerOptions.WriteIndented"/> property.</item>
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
44Assert.True(options.WriteIndented);
System.Text.Json (5)
src\libraries\System.Text.Json\Common\JsonSourceGenerationOptionsAttribute.cs (1)
144/// Specifies the default value of <see cref="JsonSerializerOptions.WriteIndented"/> when set.
System\Text\Json\Serialization\JsonSerializerOptions.cs (4)
714/// Defines the indentation character being used when <see cref="WriteIndented" /> is enabled. Defaults to the space character. 736/// Defines the indentation size being used when <see cref="WriteIndented" /> is enabled. Defaults to two. 772/// Gets or sets the new line string to use when <see cref="WriteIndented"/> is <see langword="true"/>. 1092Indented = WriteIndented,