27 instantiations of JsonWriterOptions
aspire (3)
Commands\McpCallCommand.cs (1)
132using (var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true }))
Commands\McpToolsCommand.cs (1)
82using (var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true }))
src\Shared\Export\ExportArchive.cs (1)
73private static readonly JsonWriterOptions s_writerOptions = new()
Aspire.Dashboard (2)
Model\TextVisualizerViewModel.cs (1)
133using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true, Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping });
src\Shared\Export\ExportArchive.cs (1)
73private static readonly JsonWriterOptions s_writerOptions = new()
Aspire.Hosting (2)
Publishing\ManifestPublisher.cs (1)
56using var jsonWriter = JsonWriter ?? new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Publishing\ManifestPublishingExtensions.cs (1)
64using var jsonWriter = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting.Azure.EventHubs (2)
AzureEventHubsExtensions.cs (2)
342using var writer = new Utf8JsonWriter(writeStream, new JsonWriterOptions { Indented = true }); 454using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting.Azure.ServiceBus (2)
AzureServiceBusExtensions.cs (2)
490using var writer = new Utf8JsonWriter(writeStream, new JsonWriterOptions { Indented = true }); 579using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
628using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting.Tests (3)
Helpers\JsonDocumentManifestPublisher.cs (2)
26using var writer = new Utf8JsonWriter(stream, new() { Indented = true }); 80using var writer = new Utf8JsonWriter(stream, new() { Indented = true });
Utils\ManifestUtils.cs (1)
50var writer = new Utf8JsonWriter(ms, new() { Indented = true });
dotnet (2)
Commands\Run\VirtualProjectBuildingCommand.cs (1)
603using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
ToolManifest\ToolManifestEditor.cs (1)
363using (var writer = new Utf8JsonWriter(arrayBufferWriter, new JsonWriterOptions { Indented = true }))
Microsoft.AspNetCore.Http.Connections.Common (1)
src\aspnetcore\src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
24_writer = new Utf8JsonWriter(stream, new JsonWriterOptions()
Microsoft.AspNetCore.SignalR.Common (1)
src\aspnetcore\src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
24_writer = new Utf8JsonWriter(stream, new JsonWriterOptions()
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
src\aspnetcore\src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
24_writer = new Utf8JsonWriter(stream, new JsonWriterOptions()
Microsoft.Extensions.AI.OpenAI (1)
MicrosoftExtensionsAIChatExtensions.cs (1)
240using Utf8JsonWriter writer = new(ms, new() { Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping });
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
25var options = new JsonWriterOptions { Indented = true, Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping };
Microsoft.Extensions.Logging.Console (1)
_generated\0\BindingExtensions.g.cs (1)
398var temp33 = new global::System.Text.Json.JsonWriterOptions();
Microsoft.NET.Sdk.StaticWebAssets.Tasks (1)
Data\StaticAssetsManifest.cs (1)
45var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { SkipValidation = true });
System.Text.Json (3)
System\Text\Json\Nodes\JsonNode.To.cs (1)
56Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(new JsonWriterOptions { Indented = true }, JsonSerializerOptions.BufferSizeDefault, out PooledByteBufferWriter output);
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
1089return new JsonWriterOptions 1108return new JsonWriterOptions
38 references to JsonWriterOptions
aspire (1)
src\Shared\Export\ExportArchive.cs (1)
73private static readonly JsonWriterOptions s_writerOptions = new()
Aspire.Dashboard (1)
src\Shared\Export\ExportArchive.cs (1)
73private static readonly JsonWriterOptions s_writerOptions = new()
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
25var options = new JsonWriterOptions { Indented = true, Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping };
Microsoft.Extensions.Logging.Console (5)
_generated\0\BindingExtensions.g.cs (4)
297public static void BindCore(IConfiguration configuration, ref global::System.Text.Json.JsonWriterOptions instance, bool defaultValueIfNotFound, BinderOptions? binderOptions) 299ValidateConfigurationKeys(typeof(global::System.Text.Json.JsonWriterOptions), s_configKeys_System__Text__Json__JsonWriterOptions, configuration, binderOptions); 397global::System.Text.Json.JsonWriterOptions temp32 = instance.JsonWriterOptions; 398var temp33 = new global::System.Text.Json.JsonWriterOptions();
JsonConsoleFormatterOptions.cs (1)
22public JsonWriterOptions JsonWriterOptions { get; set; }
System.Text.Json (30)
System\Text\Json\Nodes\JsonNode.To.cs (1)
15JsonWriterOptions writerOptions = default;
System\Text\Json\Serialization\JsonSerializer.Write.Pipe.cs (1)
265JsonWriterOptions writerOptions = jsonTypeInfo.Options.GetWriterOptionsForJsonLines();
System\Text\Json\Serialization\JsonSerializer.Write.Stream.cs (1)
407JsonWriterOptions writerOptions = jsonTypeInfo.Options.GetWriterOptionsForJsonLines();
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
1087internal JsonWriterOptions GetWriterOptions() 1106internal JsonWriterOptions GetWriterOptionsForJsonLines()
System\Text\Json\Writer\Utf8JsonWriter.cs (12)
29/// <see cref="JsonWriterOptions"/> and pass that in to the writer. 77private JsonWriterOptions _options; // Since JsonWriterOptions is a struct, use a field to avoid a copy for internal code. 106public JsonWriterOptions Options => _options; 217public Utf8JsonWriter(IBufferWriter<byte> bufferWriter, JsonWriterOptions options = default) 235public Utf8JsonWriter(Stream utf8Json, JsonWriterOptions options = default) 248private void SetOptions(JsonWriterOptions options) 259_options.MaxDepth = JsonWriterOptions.DefaultMaxDepth; // If max depth is not set, revert to the default depth. 328/// and the specified <see cref="JsonWriterOptions"/>. 341public void Reset(Stream utf8Json, JsonWriterOptions options) 374/// and the specified <see cref="JsonWriterOptions"/>. 384public void Reset(IBufferWriter<byte> bufferWriter, JsonWriterOptions options) 399internal void ConfigureForCacheReuse(IBufferWriter<byte> bufferWriter, JsonWriterOptions options)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (12)
30/// The <see cref="JsonWriterOptions.SkipValidation"/> value for the writer instance is honored when using this method. 32/// The <see cref="JsonWriterOptions.Indented"/> and <see cref="JsonWriterOptions.Encoder"/> values for the writer instance are not applied when using this method. 63/// The <see cref="JsonWriterOptions.SkipValidation"/> value for the writer instance is honored when using this method. 65/// The <see cref="JsonWriterOptions.Indented"/> and <see cref="JsonWriterOptions.Encoder"/> values for the writer instance are not applied when using this method. 94/// The <see cref="JsonWriterOptions.SkipValidation"/> value for the writer instance is honored when using this method. 96/// The <see cref="JsonWriterOptions.Indented"/> and <see cref="JsonWriterOptions.Encoder"/> values for the writer instance are not applied when using this method. 130/// The <see cref="JsonWriterOptions.SkipValidation"/> value for the writer instance is honored when using this method. 132/// The <see cref="JsonWriterOptions.Indented"/> and <see cref="JsonWriterOptions.Encoder"/> values for the writer instance are not applied when using this method.
System\Text\Json\Writer\Utf8JsonWriterCache.cs (1)
20public static Utf8JsonWriter RentWriterAndBuffer(JsonWriterOptions options, int defaultBufferSize, out PooledByteBufferWriter bufferWriter)