4 instantiations of JsonReaderOptions
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
195
var reader = new Utf8JsonReader(jsonData, new
JsonReaderOptions
Microsoft.Extensions.AI (1)
ChatCompletion\ChatResponse{T}.cs (1)
23
private static readonly JsonReaderOptions _allowMultipleValuesJsonReaderOptions =
new
()
System.Text.Json (2)
System\Text\Json\Document\JsonDocumentOptions.cs (1)
74
return new
JsonReaderOptions
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
1039
return new
JsonReaderOptions
40 references to JsonReaderOptions
Microsoft.Extensions.AI (1)
ChatCompletion\ChatResponse{T}.cs (1)
23
private static readonly
JsonReaderOptions
_allowMultipleValuesJsonReaderOptions = new()
System.Text.Json (39)
System\Text\Json\Document\JsonDocument.cs (2)
945
JsonReaderOptions
readerOptions,
1116
JsonReaderOptions
readerOptions,
System\Text\Json\Document\JsonDocument.Parse.cs (3)
79
JsonReaderOptions
readerOptions = options.GetReaderOptions();
689
JsonReaderOptions
readerOptions,
716
JsonReaderOptions
readerOptions,
System\Text\Json\Document\JsonDocumentOptions.cs (1)
72
internal
JsonReaderOptions
GetReaderOptions()
System\Text\Json\Reader\JsonReaderState.cs (4)
24
internal readonly
JsonReaderOptions
_readerOptions;
39
public JsonReaderState(
JsonReaderOptions
options = default)
65
JsonReaderOptions
readerOptions,
85
public
JsonReaderOptions
Options => _readerOptions;
System\Text\Json\Reader\Utf8JsonReader.cs (3)
37
private
JsonReaderOptions
_readerOptions;
231
_readerOptions.MaxDepth =
JsonReaderOptions
.DefaultMaxDepth; // If max depth is not set, revert to the default depth.
265
public Utf8JsonReader(ReadOnlySpan<byte> jsonData,
JsonReaderOptions
options = default)
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (2)
42
_readerOptions.MaxDepth =
JsonReaderOptions
.DefaultMaxDepth; // If max depth is not set, revert to the default depth.
115
public Utf8JsonReader(ReadOnlySequence<byte> jsonData,
JsonReaderOptions
options = default)
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (2)
465
JsonReaderOptions
readerOptions = jsonTypeInfo.Options.GetReaderOptions();
481
JsonReaderOptions
readerOptions,
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (20)
53
/// The <see cref="
JsonReaderOptions
"/> used to create the instance of the <see cref="Utf8JsonReader"/> take precedence over the <see cref="JsonSerializerOptions"/> when they conflict.
54
/// Hence, <see cref="
JsonReaderOptions
.AllowTrailingCommas"/>, <see cref="
JsonReaderOptions
.MaxDepth"/>, and <see cref="
JsonReaderOptions
.CommentHandling"/> are used while reading.
106
/// The <see cref="
JsonReaderOptions
"/> used to create the instance of the <see cref="Utf8JsonReader"/> take precedence over the <see cref="JsonSerializerOptions"/> when they conflict.
107
/// Hence, <see cref="
JsonReaderOptions
.AllowTrailingCommas"/>, <see cref="
JsonReaderOptions
.MaxDepth"/>, and <see cref="
JsonReaderOptions
.CommentHandling"/> are used while reading.
155
/// The <see cref="
JsonReaderOptions
"/> used to create the instance of the <see cref="Utf8JsonReader"/> take precedence over the <see cref="JsonSerializerOptions"/> when they conflict.
156
/// Hence, <see cref="
JsonReaderOptions
.AllowTrailingCommas"/>, <see cref="
JsonReaderOptions
.MaxDepth"/>, and <see cref="
JsonReaderOptions
.CommentHandling"/> are used while reading.
201
/// The <see cref="
JsonReaderOptions
"/> used to create the instance of the <see cref="Utf8JsonReader"/> take precedence over the <see cref="JsonSerializerOptions"/> when they conflict.
202
/// Hence, <see cref="
JsonReaderOptions
.AllowTrailingCommas"/>, <see cref="
JsonReaderOptions
.MaxDepth"/>, and <see cref="
JsonReaderOptions
.CommentHandling"/> are used while reading.
258
/// The <see cref="
JsonReaderOptions
"/> used to create the instance of the <see cref="Utf8JsonReader"/> take precedence over the <see cref="JsonSerializerOptions"/> when they conflict.
259
/// Hence, <see cref="
JsonReaderOptions
.AllowTrailingCommas"/>, <see cref="
JsonReaderOptions
.MaxDepth"/>, and <see cref="
JsonReaderOptions
.CommentHandling"/> are used while reading.
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
28
internal const int DefaultMaxDepth =
JsonReaderOptions
.DefaultMaxDepth;
1037
internal
JsonReaderOptions
GetReaderOptions()