TJSONConsumerReader class
JSON reader that uses an IJSONConsumer for processing
Declaration
TJSONConsumerReader = class(TBaseJSONReader)Inheritance
- TJSONConsumerReader
- TBaseJSONReader
- 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
Properties
Consumer | public | JSON consumer object that processes parsed elements |
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 using the assigned consumer |
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.
