Sign in Join
FPDoc Onlineexperiment

IJSONConsumer interface

In unit JsonReader

Interface for JSON data consumers

Declaration

pascal
IJSONConsumer = class

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.

Errors

Implementation-specific error handling depends on the implementing class.

See also

Methods

NullValueProcesses a JSON null value
BooleanValueProcesses a JSON boolean value
NumberValueProcesses a JSON number value as string
FloatValueProcesses a JSON floating-point value
Int64ValueProcesses a JSON 64-bit integer value
QWordValueProcesses a JSON quadword value
IntegerValueProcesses a JSON integer value
StringValueProcesses a JSON string value
KeyNameProcesses a JSON object key name
StartObjectProcesses the start of a JSON object
EndObjectProcesses the end of a JSON object
StartArrayProcesses the start of a JSON array
EndArrayProcesses the end of a JSON array

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.