Unit 'JsonWriter' Package
[Overview][Classes][Index] [#fcl]

TAbstractJSONWriter

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

Abstract base class for JSON writers

Declaration

Source position: jsonwriter.pp line 37

type TAbstractJSONWriter = class(TObject)

public

  procedure WriteValue();

  

Write a JSON value to the output

  procedure WriteProperty();

  

Write a named property to a JSON object

  procedure StartProperty(); virtual; abstract;

  

Start writing a property in a JSON object

  procedure EndProperty; virtual; abstract;

  

End writing a property in a JSON object

  procedure StartArray; virtual; abstract;

  

Start writing a JSON array

  procedure EndArray; virtual; abstract;

  

End writing a JSON array

  procedure NextElement; virtual; abstract;

  

Prepare for the next element in a JSON array

  procedure StartObject; virtual; abstract;

  

Start writing a JSON object

  procedure EndObject; virtual; abstract;

  

End writing a JSON object

  procedure Flush; virtual; abstract;

  

Flush any pending output to the destination

end;

Inheritance

TAbstractJSONWriter

  

Abstract base class for JSON writers

|

TObject

Description

TAbstractJSONWriter is the abstract base class for all JSON writer implementations. It provides the interface for writing JSON data and implements convenience methods for writing properties. Derived classes must implement the abstract methods for actual writing operations.

See also

TJSONDataWriter

  

JSON writer that builds TJSONData tree in memory

TJSONStreamWriter

  

JSON writer that writes directly to a stream


Documentation generated on: Jan 27 2026