Unit 'JsonScanner' Package
[Overview][Resource strings][Constants][Types][Classes][Index] [#fcl]

TJSONScanner.FetchToken

Fetch next token from input

Declaration

Source position: jsonscanner.pp line 134

public function TJSONScanner.FetchToken: TJSONToken;

Function result

Type of the fetched token

Description

Reads and returns the next token from the JSON input stream. Advances the scanner position and updates current token information. The token type and associated string value are available through properties after calling this method.

Errors

Raises EScannerError when encountering invalid JSON syntax.

See also

TJSONToken

  

JSON token types

CurToken

  

Current token type

CurTokenString

  

Current token string value


Documentation generated on: Jan 27 2026