TJSONScanner class
JSON lexical scanner
Declaration
TJSONScanner = classDescription
Lexical scanner class that tokenizes JSON text input. Breaks JSON source into discrete tokens for subsequent parsing by higher-level parsers. Supports various scanning options through TJSONOptions.
Errors
Raises EScannerError when encountering invalid JSON syntax or characters.
See also
Properties
CurLine | public | Current line content |
CurRow | public | Current row number |
CurColumn | public | Current column number |
AbsolutePos | public | Absolute character position |
CurToken | public | Current token type |
CurTokenString | public | Current token string value |
Strict | public | Strict JSON parsing mode |
UseUTF8 | public | UTF-8 encoding mode |
Options | public | Scanner options set |
Methods
Error | protected | |
InvalidCharacter | protected | |
Create | public | Create JSON scanner instance |
FetchToken | public | Fetch next token from input |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
