TJSONScanner.FetchToken¶
Fetch next token from input
Declaration¶
Source position: jsonscanner.pp line 134
public
function TJSONScanner.FetchToken : TJSONToken;
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¶
| Name | Description |
|---|---|
| TJSONToken | JSON token types |
| CurToken | Current token type |
| CurTokenString | Current token string value |