Share via


JsonReader.NextString Method

Definition

Returns the JsonToken#STRING string value of the next token, consuming it.

[Android.Runtime.Register("nextString", "()Ljava/lang/String;", "")]
public string? NextString ();
[<Android.Runtime.Register("nextString", "()Ljava/lang/String;", "")>]
member this.NextString : unit -> string

Returns

Attributes

Exceptions

if the next token is not a string or if this reader is closed.

Remarks

Returns the JsonToken#STRING string value of the next token, consuming it. If the next token is a number, this method will return its string form.

Java documentation for android.util.JsonReader.nextString().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to