TJson.Serialize Method
Overloads
TJson.Serialize(TValue)
Serializes a TValue to a JSON string.
Syntax
Unit: Bcl.Json
class function TJson.Serialize(const Value: TValue): string; overload;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | Value | TValue | The value to serialize. |
Returns
A JSON string representation of the value.
See also
TJson.Serialize(TValue, TStream)
Serializes a TValue and writes the JSON output to a stream.
Syntax
Unit: Bcl.Json
class procedure TJson.Serialize(const Value: TValue; Stream: TStream); overload;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | Value | TValue | The value to serialize. |
| Stream | TStream | The stream to write the JSON output to. |