Skip to content

TJSONStreamWriter.WriteValue

Write a JSON value directly to the stream

Declaration

Source position: jsonwriter.pp line 117

public 
procedure WriteValue;  override;

procedure WriteValue(aValue: Boolean);  override;

procedure WriteValue(aValue: Integer);  override;

procedure WriteValue(aValue: Int64);  override;

procedure WriteValue(aValue: Double);  override;

procedure WriteValue(const aValue: string);  override;

Description

WriteValue writes a JSON value directly to the output stream. This method is overloaded for different data types and formats the values according to JSON syntax. String values are properly escaped and quoted according to the StrictStrings property.

See also

Name Description
StrictStrings Control strict JSON string encoding