4 instantiations of JsonReaderOptions
Aspire.Dashboard (1)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
195var reader = new Utf8JsonReader(jsonData, new JsonReaderOptions
Microsoft.Extensions.AI (1)
ChatCompletion\ChatResponse{T}.cs (1)
23private static readonly JsonReaderOptions _allowMultipleValuesJsonReaderOptions = new()
System.Text.Json (2)
System\Text\Json\Document\JsonDocumentOptions.cs (1)
74return new JsonReaderOptions
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
1039return new JsonReaderOptions
40 references to JsonReaderOptions
Microsoft.Extensions.AI (1)
ChatCompletion\ChatResponse{T}.cs (1)
23private static readonly JsonReaderOptions _allowMultipleValuesJsonReaderOptions = new()
System.Text.Json (39)
System\Text\Json\Document\JsonDocument.cs (2)
945JsonReaderOptions readerOptions, 1116JsonReaderOptions readerOptions,
System\Text\Json\Document\JsonDocument.Parse.cs (3)
79JsonReaderOptions readerOptions = options.GetReaderOptions(); 689JsonReaderOptions readerOptions, 716JsonReaderOptions readerOptions,
System\Text\Json\Document\JsonDocumentOptions.cs (1)
72internal JsonReaderOptions GetReaderOptions()
System\Text\Json\Reader\JsonReaderState.cs (4)
24internal readonly JsonReaderOptions _readerOptions; 39public JsonReaderState(JsonReaderOptions options = default) 65JsonReaderOptions readerOptions, 85public JsonReaderOptions Options => _readerOptions;
System\Text\Json\Reader\Utf8JsonReader.cs (3)
37private JsonReaderOptions _readerOptions; 231_readerOptions.MaxDepth = JsonReaderOptions.DefaultMaxDepth; // If max depth is not set, revert to the default depth. 265public 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. 115public Utf8JsonReader(ReadOnlySequence<byte> jsonData, JsonReaderOptions options = default)
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (2)
465JsonReaderOptions readerOptions = jsonTypeInfo.Options.GetReaderOptions(); 481JsonReaderOptions 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)
28internal const int DefaultMaxDepth = JsonReaderOptions.DefaultMaxDepth; 1037internal JsonReaderOptions GetReaderOptions()