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

TAbstractJSONWriter.WriteProperty

Write a named property to a JSON object

Declaration

Source position: jsonwriter.pp line 42

public procedure TAbstractJSONWriter.WriteProperty(

  const aName: TJSONStringType

);

procedure TAbstractJSONWriter.WriteProperty(

  const aName: TJSONStringType;

  aValue: Boolean

);

procedure TAbstractJSONWriter.WriteProperty(

  const aName: TJSONStringType;

  aValue: Integer

);

procedure TAbstractJSONWriter.WriteProperty(

  const aName: TJSONStringType;

  aValue: Int64

);

procedure TAbstractJSONWriter.WriteProperty(

  const aName: TJSONStringType;

  aValue: Double

);

procedure TAbstractJSONWriter.WriteProperty(

  const aName: TJSONStringType;

  const aValue: string

);

procedure TAbstractJSONWriter.WriteProperty(

  const aName: TJSONStringType;

  aValue: TStrings

);

procedure TAbstractJSONWriter.WriteProperty(

  const aName: TJSONStringType;

  aValue: TJSONData

);

Arguments

aName

  

The name of the property

Arguments

aName

  

The name of the property

aValue

  

The value of the property

Arguments

aName

  

The name of the property

aValue

  

The value of the property

Arguments

aName

  

The name of the property

aValue

  

The value of the property

Arguments

aName

  

The name of the property

aValue

  

The value of the property

Arguments

aName

  

The name of the property

aValue

  

The value of the property

Arguments

aName

  

The name of the property

aValue

  

The value of the property

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

StartProperty

  

Start writing a property in a JSON object

WriteValue

  

Write a JSON value to the output

EndProperty

  

End writing a property in a JSON object


Documentation generated on: Jan 27 2026