You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET Core 3.0 only: <typeparamrefname="TValue" /> is <seecref="T:System.Char" /> and <paramrefname="json" /> is an empty string.</exception>
309
311
<exceptioncref="T:System.ArgumentNullException">
310
312
<paramrefname="json" /> is <seelangword="null" />.</exception>
311
313
<exceptioncref="T:System.Text.Json.JsonException">The JSON is invalid.
@@ -316,7 +318,11 @@ For more information, see [How to serialize and deserialize JSON](/dotnet/standa
316
318
317
319
-or-
318
320
319
-
There is remaining data in the string beyond a single JSON value.</exception>
321
+
There is remaining data in the string beyond a single JSON value.
322
+
323
+
-or-
324
+
325
+
.NET Core 3.1 and later versions only: <typeparamrefname="TValue" /> is <seecref="T:System.Char" /> and <paramrefname="json" /> is a null reference (<code>JsonSerializer.Deserialize<char>("null");</code>) or an empty string.</exception>
320
326
<exceptioncref="T:System.NotSupportedException">There is no compatible <seecref="System.Text.Json.Serialization.JsonConverter" /> for <typeparamrefname="TValue" /> or its serializable members.</exception>
321
327
</Docs>
322
328
</Member>
@@ -355,15 +361,15 @@ There is remaining data in the string beyond a single JSON value.</exception>
355
361
## Remarks
356
362
357
363
If the <xref:System.Text.Json.Utf8JsonReader.TokenType> property of `reader` is <xref:System.Text.Json.JsonTokenType.PropertyName?displayProperty=nameWithType> or <xref:System.Text.Json.JsonTokenType.None?displayProperty=nameWithType>, the reader will be advanced by one call to <xref:System.Text.Json.Utf8JsonReader.Read?displayProperty=nameWithType> to determine the start of the value.
358
-
364
+
359
365
Upon completion of this method, `reader` will be positioned at the final token in the JSON value. If an exception is thrown, the reader is reset to the state it was in when the method was called.
360
-
366
+
361
367
This method makes a copy of the data the reader acted on, so there is no caller requirement to maintain data integrity beyond the return of this method.
362
-
368
+
363
369
The <xref:System.Text.Json.JsonReaderOptions> used to create the instance of the <xref:System.Text.Json.Utf8JsonReader> take precedence over the <xref:System.Text.Json.JsonSerializerOptions> when they conflict. Hence, <xref:System.Text.Json.JsonReaderOptions.AllowTrailingCommas?displayProperty=nameWithType>, <xref:System.Text.Json.JsonReaderOptions.MaxDepth?displayProperty=nameWithType>, and <xref:System.Text.Json.JsonReaderOptions.CommentHandling?displayProperty=nameWithType> are used while reading.
364
370
365
371
For more information, see [How to serialize and deserialize JSON](/dotnet/standard/serialization/system-text-json-how-to).
366
-
372
+
367
373
]]></format>
368
374
</remarks>
369
375
<exceptioncref="T:System.Text.Json.JsonException">The JSON is invalid.
0 commit comments