Sign in Join
FPDoc Onlineexperiment

TJSONDataWriter.WriteValue procedure

Member of TJSONDataWriterpublicIn unit JsonWriter

Write a JSON value to the current position

Declaration

pascal
procedure WriteValue(aValue: Boolean); override
procedure WriteValue(aValue: Double); override
procedure WriteValue(aValue: Int64); override
procedure WriteValue(aValue: Integer); override
procedure WriteValue(const aValue: string); override
procedure WriteValue; override

Arguments

aValue

The value to write to the JSON output

Description

WriteValue creates the appropriate TJSONData subclass instance for the value and pushes it onto the internal stack. This method is overloaded for different data types including Boolean, Integer, Int64, Double, and String.

See also

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