TTMSMCPJSONSchemaGenerator.SchemaToString Method
Serializes a generated schema to a JSON string, either indented for reading or compact for transport.
API unit family: TMS.MCP.JSONSchema
Declaring type: TTMSMCPJSONSchemaGenerator
Syntax
class function SchemaToString(ASchema: TJSONObject; APretty: Boolean = True): string;
Parameters
| Name | Description |
|---|---|
ASchema |
The schema to serialize. Ownership stays with the caller, which must still destroy it afterwards. |
APretty |
When True, the output is indented for readability; when False, it is written as compact JSON. Defaults to True. |
Returns
The schema as JSON, or {} when no schema was passed.