Skip to content

TAbstractJSONWriter.WriteValue

Write a JSON value to the output

Declaration

Source position: jsonwriter.pp line 40

public 
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;

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

Name Description
WriteProperty Write a named property to a JSON object