TJSONEventReader class
Event-based JSON reader that fires events for JSON elements
Declaration
TJSONEventReader = class(TBaseJSONReader)Inheritance
- TJSONEventReader
- TBaseJSONReader
- 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
Methods
KeyValue | protected | |
StringValue | protected | |
NullValue | protected | |
FloatValue | protected | |
BooleanValue | protected | |
NumberValue | protected | |
IntegerValue | protected | |
Int64Value | protected | |
QWordValue | protected | |
StartArray | protected | |
StartObject | protected | |
EndArray | protected | |
EndObject | protected | |
Execute | public | Starts the JSON parsing process and fires events |
Events
OnNullValue | public | Event fired when a JSON null value is encountered |
OnBooleanValue | public | Event fired when a JSON boolean value is encountered |
OnNumberValue | public | Event fired when a JSON number value is encountered |
OnFloatValue | public | Event fired when a JSON floating-point value is encountered |
OnIntegerValue | public | Event fired when a JSON integer value is encountered |
OnInt64Value | public | Event fired when a JSON 64-bit integer value is encountered |
OnQWordValue | public | Event fired when a JSON quadword value is encountered |
OnStringValue | public | Event fired when a JSON string value is encountered |
OnKeyName | public | Event fired when a JSON object key name is encountered |
OnStartObject | public | Event fired when a JSON object begins |
OnEndObject | public | Event fired when a JSON object ends |
OnStartArray | public | Event fired when a JSON array begins |
OnEndArray | public | Event fired when a JSON array ends |
Inherited
From TBaseJSONReader (13)
Create CurrentToken CurrentTokenString Destroy DoError DoExecute DoParse GetNextToken Options ParseArray ParseNumber ParseObject Scanner
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
