Sign in Join
FPDoc Onlineexperiment

TAbstractJSONWriter.WriteValue procedure

Member of TAbstractJSONWriterpublicIn unit JsonWriter

Write a JSON value to the output

Declaration

pascal
procedure WriteValue(aValue: TStrings)
procedure WriteValue(aValue: TJSONData)
procedure WriteValue; virtual; abstract
procedure WriteValue(aValue: Boolean); virtual; abstract
procedure WriteValue(aValue: Integer); virtual; abstract
procedure WriteValue(aValue: Int64); virtual; abstract
procedure WriteValue(aValue: Double); virtual; abstract
procedure WriteValue(const aValue: string); virtual; abstract

Arguments

aValue

The value to write to the JSON output

Description

WriteValue writes a JSON value to the output. This method is overloaded for different data types and has abstract variants that must be implemented by derived classes. The non-abstract variants handle complex types like TStrings and TJSONData by decomposing them into simpler operations.

See also

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