Unit 'JsonReader' Package
[Overview][Types][Classes][Index] [#fcl]

TBaseJSONReader

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

Abstract base class for JSON readers

Declaration

Source position: jsonreader.pp line 35

type TBaseJSONReader = class(TObject)

public

  constructor Create(); deprecated ;

  

Creates a new JSON reader with specified source and options

  destructor Destroy; override;

  

Destroys the JSON reader and frees resources

  property Options: TJSONOptions; [rw]

  

JSON parsing options that control reader behavior

end;

Inheritance

TBaseJSONReader

  

Abstract base class for JSON readers

|

TObject

Description

TBaseJSONReader is the abstract base class for all JSON reading functionality. It provides the core parsing logic and virtual methods that must be implemented by derived classes. The class uses TJSONScanner for tokenization and handles the parsing of JSON objects, arrays, and primitive values. Derived classes must implement abstract methods to handle different JSON element types encountered during parsing.

Errors

Raises EJSONParser when invalid JSON syntax is encountered.

See also

TJSONEventReader

  

Event-based JSON reader that fires events for JSON elements

TJSONConsumerReader

  

JSON reader that uses an IJSONConsumer for processing

TJSONScanner


Documentation generated on: Jan 27 2026