Utf8JsonReader.GetBoolean Method

Definition

Reads the next JSON token value from the source as a Boolean.

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

Returns

true if the TokenType is True; false if the TokenType is False.

Exceptions

The value of the JSON token isn't a Boolean value (that is, True or False).

Applies to

See also