TAbstractJSONWriter.WriteProperty procedure
Write a named property to a JSON object
Declaration
procedure WriteProperty(const aName: TJSONStringType)
procedure WriteProperty(const aName: TJSONStringType; aValue: Boolean)
procedure WriteProperty(const aName: TJSONStringType; aValue: Integer)
procedure WriteProperty(const aName: TJSONStringType; aValue: Int64)
procedure WriteProperty(const aName: TJSONStringType; aValue: Double)
procedure WriteProperty(const aName: TJSONStringType;
const aValue: string)
procedure WriteProperty(const aName: TJSONStringType; aValue: TStrings)
procedure WriteProperty(const aName: TJSONStringType; aValue: TJSONData)Arguments
aName | The name of the property |
aValue | The value of the property |
Description
WriteProperty writes a named property to a JSON object.
This method is overloaded for different data types and automatically handles the property name and value writing sequence.
It calls
StartProperty,
WriteValue, and
EndProperty in sequence.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
