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

TJSONScanner

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

JSON lexical scanner

Declaration

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

  property CurRow: Integer; [r]

  

Current row number

  property CurColumn: Integer; [r]

  

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;

Inheritance

TJSONScanner

  

JSON lexical scanner

|

TObject

Description

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

TJSONToken

  

JSON token types

TJSONOptions

  

Set of JSON scanner options

EScannerError

  

JSON scanner exception


Documentation generated on: Jan 27 2026