33 writes to WriteIndented
Aspire.Dashboard (1)
Otlp\Model\OtlpHelpers.cs (1)
23WriteIndented = false
Aspire.Hosting (1)
src\Shared\SecretsStore.cs (1)
70WriteIndented = true
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
27WriteIndented = true,
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
52private static readonly JsonSerializerOptions s_testSerializerOptions = new() { WriteIndented = 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 (1)
Assets\ImportMapSerializerContext.cs (1)
17WriteIndented = true,
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\JsonConverterHelper.cs (1)
46WriteIndented = writeIndented,
Microsoft.AspNetCore.Http.Results.Tests (1)
JsonResultTests.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.XliffTasks (1)
Model\JsonDocument.cs (1)
18WriteIndented = true,
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Defaults.cs (1)
36WriteIndented = true,
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
36WriteIndented = 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,
MSBuild (2)
JsonOutputFormatter.cs (1)
20private static readonly JsonSerializerOptions s_options = new() { AllowTrailingCommas = false, WriteIndented = true };
XMake.cs (1)
4645var options = new JsonSerializerOptions() { AllowTrailingCommas = false, WriteIndented = true };
6 references to WriteIndented
Microsoft.Extensions.AI.Abstractions.Tests (1)
Utilities\AIJsonUtilitiesTests.cs (1)
35Assert.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)
703/// Defines the indentation character being used when <see cref="WriteIndented" /> is enabled. Defaults to the space character. 725/// Defines the indentation size being used when <see cref="WriteIndented" /> is enabled. Defaults to two. 761/// Gets or sets the new line string to use when <see cref="WriteIndented"/> is <see langword="true"/>. 1055Indented = WriteIndented,