11 instantiations of JsonWriterOptions
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
192using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting (1)
Publishing\ManifestPublisher.cs (1)
40using var jsonWriter = JsonWriter ?? new Utf8JsonWriter(stream, new JsonWriterOptions { Indented = true });
Aspire.Hosting.Tests (1)
Helpers\JsonDocumentManifestPublisher.cs (1)
22using var writer = new Utf8JsonWriter(stream, new() { Indented = true });
HttpLogging.Sample (1)
Program.cs (1)
23options.JsonWriterOptions = new JsonWriterOptions()
Microsoft.AspNetCore.Http.Connections.Common (1)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
24_writer = new Utf8JsonWriter(stream, new JsonWriterOptions()
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
24_writer = new Utf8JsonWriter(stream, new JsonWriterOptions()
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
src\SignalR\common\Shared\ReusableUtf8JsonWriter.cs (1)
24_writer = new Utf8JsonWriter(stream, new JsonWriterOptions()
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
25var options = new JsonWriterOptions { Indented = true, Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping };
SignalRSamples (1)
Startup.cs (1)
13private readonly JsonWriterOptions _jsonWriterOptions = new JsonWriterOptions { Indented = true };
System.Text.Json (2)
System\Text\Json\Nodes\JsonNode.To.cs (1)
58Utf8JsonWriter writer = Utf8JsonWriterCache.RentWriterAndBuffer(new JsonWriterOptions { Indented = true }, JsonSerializerOptions.BufferSizeDefault, out PooledByteBufferWriter output);
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
1052return new JsonWriterOptions
26 references to JsonWriterOptions
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
25var options = new JsonWriterOptions { Indented = true, Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping };
Microsoft.Extensions.Logging.Console (1)
JsonConsoleFormatterOptions.cs (1)
22public JsonWriterOptions JsonWriterOptions { get; set; }
SignalRSamples (1)
Startup.cs (1)
13private readonly JsonWriterOptions _jsonWriterOptions = new JsonWriterOptions { Indented = true };
System.Text.Json (23)
System\Text\Json\Nodes\JsonNode.To.cs (1)
17JsonWriterOptions writerOptions = default;
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
1050internal JsonWriterOptions GetWriterOptions()
System\Text\Json\Writer\Utf8JsonWriter.cs (8)
31/// <see cref="JsonWriterOptions"/> and pass that in to the writer. 56private JsonWriterOptions _options; // Since JsonWriterOptions is a struct, use a field to avoid a copy for internal code. 85public JsonWriterOptions Options => _options; 111public Utf8JsonWriter(IBufferWriter<byte> bufferWriter, JsonWriterOptions options = default) 132public Utf8JsonWriter(Stream utf8Json, JsonWriterOptions options = default) 148private void SetOptions(JsonWriterOptions options) 159_options.MaxDepth = JsonWriterOptions.DefaultMaxDepth; // If max depth is not set, revert to the default depth. 252internal void Reset(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. 66/// The <see cref="JsonWriterOptions.SkipValidation"/> value for the writer instance is honored when using this method. 68/// The <see cref="JsonWriterOptions.Indented"/> and <see cref="JsonWriterOptions.Encoder"/> values for the writer instance are not applied when using this method. 97/// The <see cref="JsonWriterOptions.SkipValidation"/> value for the writer instance is honored when using this method. 99/// The <see cref="JsonWriterOptions.Indented"/> and <see cref="JsonWriterOptions.Encoder"/> values for the writer instance are not applied when using this method. 133/// The <see cref="JsonWriterOptions.SkipValidation"/> value for the writer instance is honored when using this method. 135/// 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)