[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
JSON lexical scanner
Source position: jsonscanner.pp line 75
type TJSONScanner = class |
||
public |
||
constructor Create(); deprecated ; |
|
Create JSON scanner instance |
function FetchToken; |
|
Fetch next token from input |
property CurLine: Ansistring; [r] |
|
Current line content |
|
Current row number |
|
|
Current column number |
|
property AbsolutePos: Integer; [r] |
|
Absolute character position |
property CurToken: TJSONToken; [r] |
|
Current token type |
property CurTokenString: Ansistring; [r] |
|
Current token string value |
property Strict: Boolean; [rw] deprecated ; |
|
Strict JSON parsing mode |
property UseUTF8: Boolean; [rw] deprecated ; |
|
UTF-8 encoding mode |
property Options: TJSONOptions; [rw] |
|
Scanner options set |
end; |
|
JSON lexical scanner |
|
| | | ||
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.
Raises EScannerError when encountering invalid JSON syntax or characters.
|
JSON token types |
|
|
Set of JSON scanner options |
|
|
JSON scanner exception |