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

TJSONConsumerReader

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

JSON reader that uses an IJSONConsumer for processing

Declaration

Source position: jsonreader.pp line 154

type TJSONConsumerReader = class(TBaseJSONReader)

public

  procedure Execute;

  

Starts the JSON parsing process using the assigned consumer

  property Consumer: IJSONConsumer; [rw]

  

JSON consumer object that processes parsed elements

end;

Inheritance

TJSONConsumerReader

  

JSON reader that uses an IJSONConsumer for processing

|

TBaseJSONReader

  

Abstract base class for JSON readers

|

TObject

Description

TJSONConsumerReader provides JSON reading functionality using the IJSONConsumer interface. It inherits from TBaseJSONReader and delegates JSON element processing to an assigned consumer object. This approach allows for flexible JSON processing by implementing the IJSONConsumer interface rather than creating event handlers. The consumer pattern provides an alternative to the event-driven approach used by TJSONEventReader.

Errors

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

See also

TBaseJSONReader

  

Abstract base class for JSON readers

IJSONConsumer

  

Interface for JSON data consumers

TJSONEventReader

  

Event-based JSON reader that fires events for JSON elements


Documentation generated on: Jan 27 2026