Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Utf8JsonReader.Read Method

Definition

Namespace:
System.Text.Json
Assembly:
System.Text.Json.dll
Package:
System.Text.Json v11.0.0-preview.5.26302.115
Source:
Utf8JsonReader.cs
Source:
Utf8JsonReader.cs
Source:
Utf8JsonReader.cs
Source:
Utf8JsonReader.cs
Source:
Utf8JsonReader.cs
Source:
Utf8JsonReader.cs
Source:
Utf8JsonReader.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Reads the next JSON token from the input source.

public:
 bool Read();
public bool Read();
member this.Read : unit -> bool
Public Function Read () As Boolean

Returns

true if the token was read successfully; otherwise, false.

Exceptions

An invalid JSON token according to the JSON RFC is encountered.

-or-

The current depth exceeds the recursive limit set by the maximum depth.

Applies to


Feedback

Was this page helpful?