Sign in Join
FPDoc Onlineexperiment

TJSONStreamWriter.WriteValue procedure

Member of TJSONStreamWriterpublicIn unit JsonWriter

Write a JSON value directly to the stream

Declaration

pascal
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

Arguments

aValue

The value to write to the JSON stream

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

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