[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
JSON reader that uses an IJSONConsumer for processing
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; |
|
JSON reader that uses an IJSONConsumer for processing |
|
| | | ||
|
Abstract base class for JSON readers |
|
| | | ||
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.
Inherits error handling from TBaseJSONReader. Raises EJSONParser for parsing errors.
|
Abstract base class for JSON readers |
|
|
Interface for JSON data consumers |
|
|
Event-based JSON reader that fires events for JSON elements |