Unit 'JsonReader' Package
[Overview][Types][Classes][Index] [#fcl]

IJSONConsumer

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Interface for JSON data consumers

Declaration

Source position: jsonreader.pp line 136

type IJSONConsumer = interface

  procedure NullValue;

  

Processes a JSON null value

  procedure BooleanValue();

  

Processes a JSON boolean value

  procedure NumberValue();

  

Processes a JSON number value as string

  procedure FloatValue();

  

Processes a JSON floating-point value

  procedure Int64Value();

  

Processes a JSON 64-bit integer value

  procedure QWordValue();

  

Processes a JSON quadword value

  procedure IntegerValue();

  

Processes a JSON integer value

  procedure StringValue();

  

Processes a JSON string value

  procedure KeyName();

  

Processes a JSON object key name

  procedure StartObject;

  

Processes the start of a JSON object

  procedure EndObject;

  

Processes the end of a JSON object

  procedure StartArray;

  

Processes the start of a JSON array

  procedure EndArray;

  

Processes the end of a JSON array

end;

Inheritance

IJSONConsumer

  

Interface for JSON data consumers

|

IInterface

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

TJSONConsumerReader

  

JSON reader that uses an IJSONConsumer for processing

TJSONEventReader

  

Event-based JSON reader that fires events for JSON elements


Documentation generated on: Jan 27 2026