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

TJSONEventReader

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

Event-based JSON reader that fires events for JSON elements

Declaration

Source position: jsonreader.pp line 90

type TJSONEventReader = class(TBaseJSONReader)

public

  procedure Execute;

  

Starts the JSON parsing process and fires events

  property OnNullValue: TNotifyEvent; [rw]

  

Event fired when a JSON null value is encountered

  property OnBooleanValue: TOnJSONBoolean; [rw]

  

Event fired when a JSON boolean value is encountered

  property OnNumberValue: TOnJSONString; [rw]

  

Event fired when a JSON number value is encountered

  property OnFloatValue: TOnJSONFloat; [rw]

  

Event fired when a JSON floating-point value is encountered

  property OnIntegerValue: TOnJSONInteger; [rw]

  

Event fired when a JSON integer value is encountered

  property OnInt64Value: TOnJSONInt64; [rw]

  

Event fired when a JSON 64-bit integer value is encountered

  property OnQWordValue: TOnJSONQWord; [rw]

  

Event fired when a JSON quadword value is encountered

  property OnStringValue: TOnJSONString; [rw]

  

Event fired when a JSON string value is encountered

  property OnKeyName: TOnJSONKey; [rw]

  

Event fired when a JSON object key name is encountered

  property OnStartObject: TNotifyEvent; [rw]

  

Event fired when a JSON object begins

  property OnEndObject: TNotifyEvent; [rw]

  

Event fired when a JSON object ends

  property OnStartArray: TNotifyEvent; [rw]

  

Event fired when a JSON array begins

  property OnEndArray: TNotifyEvent; [rw]

  

Event fired when a JSON array ends

end;

Inheritance

TJSONEventReader

  

Event-based JSON reader that fires events for JSON elements

|

TBaseJSONReader

  

Abstract base class for JSON readers

|

TObject

Description

TJSONEventReader provides event-based JSON reading functionality. It inherits from TBaseJSONReader and fires specific events when different JSON elements are encountered during parsing. This allows applications to process JSON data using an event-driven approach similar to SAX parsing for XML. Each JSON element type has a corresponding event property that can be assigned to handle the parsed data.

Errors

Inherits error handling from TBaseJSONReader. Raises EJSONParser for parsing errors.

See also

TBaseJSONReader

  

Abstract base class for JSON readers

TJSONConsumerReader

  

JSON reader that uses an IJSONConsumer for processing


Documentation generated on: Jan 27 2026