JsonLexer.nextToken

JsonToken nextToken() @safe

Return the next token from the input stream.

Advances the lexer position and returns the next token. When the input is exhausted, returns a token with kind END. On lexical errors, returns a token with kind ERROR.

Returns

The next JsonToken from the input.