JsonReader unit
Event-based JSON reading with SAX-like parsing
The
jsonreader unit provides event-based JSON reading functionality.
It offers a SAX-like approach to JSON parsing where events are fired as JSON elements are encountered during parsing.
This allows for efficient processing of large JSON documents without loading the entire structure into memory.
The unit includes abstract base classes, event-driven readers, and interface-based consumers for flexible JSON processing.
Classes and records
EJSONParser | class | Exception class for JSON parsing errors |
IJSONConsumer | interface | Interface for JSON data consumers |
TBaseJSONReader | class | Abstract base class for JSON readers |
TJSONConsumerReader | class | JSON reader that uses an IJSONConsumer for processing |
TJSONEventReader | class | Event-based JSON reader that fires events for JSON elements |
Types
TOnJSONBoolean | procedure type | Event handler for JSON boolean values |
TOnJSONFloat | procedure type | Event handler for JSON floating-point values |
TOnJSONInt64 | procedure type | Event handler for JSON 64-bit integer values |
TOnJSONInteger | procedure type | Event handler for JSON integer values |
TOnJSONKey | procedure type | Event handler for JSON object key names |
TOnJSONQWord | procedure type | Event handler for JSON unsigned quadword values |
TOnJSONString | procedure type | Event handler for JSON string values |
Topics
JSONConsumerUsage | topic | Using TJSONConsumerReader with IJSONConsumer interface |
JSONEventReaderUsage | topic | Using TJSONEventReader for event-based JSON parsing |
JSONReaderStreamUsage | topic | Using JSON readers with streams and files |
Uses
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
