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