Sign in Join
FPDoc Onlineexperiment

TJSONScanner class

In unit JsonScanner

JSON lexical scanner

Declaration

pascal
TJSONScanner = class

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

Properties

CurLinepublicCurrent line content
CurRowpublicCurrent row number
CurColumnpublicCurrent column number
AbsolutePospublicAbsolute character position
CurTokenpublicCurrent token type
CurTokenStringpublicCurrent token string value
StrictpublicStrict JSON parsing mode
UseUTF8publicUTF-8 encoding mode
OptionspublicScanner options set

Methods

Errorprotected
InvalidCharacterprotected
CreatepublicCreate JSON scanner instance
FetchTokenpublicFetch next token from input

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