Declaration¶
Source position: jsonreader.pp line 136
type
IJSONConsumer = interface
['{60F9D640-2A69-4AAB-8EE1-0DB6DC614D27}']
procedure NullValue;
procedure BooleanValue;
procedure NumberValue;
procedure FloatValue;
procedure Int64Value;
procedure QWordValue;
procedure IntegerValue;
procedure StringValue;
procedure KeyName;
procedure StartObject;
procedure EndObject;
procedure StartArray;
procedure EndArray;
end;
Inheritance¶
Description¶
IJSONConsumer defines a standard interface for objects that consume JSON data during parsing. This interface provides methods that correspond to different JSON element types and structural events. Implementers of this interface can process JSON data as it is parsed without needing to create event handlers. The interface is used with TJSONConsumerReader for flexible JSON processing.
Methods¶
| Member | Visibility | Description |
|---|---|---|
| BooleanValue | default | Processes a JSON boolean value |
| EndArray | default | Processes the end of a JSON array |
| EndObject | default | Processes the end of a JSON object |
| FloatValue | default | Processes a JSON floating-point value |
| Int64Value | default | Processes a JSON 64-bit integer value |
| IntegerValue | default | Processes a JSON integer value |
| KeyName | default | Processes a JSON object key name |
| NullValue | default | Processes a JSON null value |
| NumberValue | default | Processes a JSON number value as string |
| QWordValue | default | Processes a JSON quadword value |
| StartArray | default | Processes the start of a JSON array |
| StartObject | default | Processes the start of a JSON object |
| StringValue | default | Processes a JSON string value |
Errors¶
Implementation-specific error handling depends on the implementing class.
See also¶
| Name | Description |
|---|---|
| TJSONConsumerReader | JSON reader that uses an IJSONConsumer for processing |
| TJSONEventReader | Event-based JSON reader that fires events for JSON elements |