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

TJSONStreamWriter.WriteValue

Write a JSON value directly to the stream

Declaration

Source position: jsonwriter.pp line 117

public procedure TJSONStreamWriter.WriteValue; override;

procedure TJSONStreamWriter.WriteValue(

  aValue: Boolean

); override;

procedure TJSONStreamWriter.WriteValue(

  aValue: Integer

); override;

procedure TJSONStreamWriter.WriteValue(

  aValue: Int64

); override;

procedure TJSONStreamWriter.WriteValue(

  aValue: Double

); override;

procedure TJSONStreamWriter.WriteValue(

  const aValue: string

); override;

Arguments

aValue

  

The value to write to the JSON stream

Arguments

aValue

  

The value to write to the JSON stream

Arguments

aValue

  

The value to write to the JSON stream

Arguments

aValue

  

The value to write to the JSON stream

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

StrictStrings

  

Control strict JSON string encoding


Documentation generated on: Jan 27 2026