Sign in Join
FPDoc Onlineexperiment

TJSONScanner.FetchToken function

Member of TJSONScannerpublicIn unit JsonScanner

Fetch next token from input

Declaration

pascal
function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.