TTMSMCPValueHelper Record
Record helper that converts between loosely typed argument values and their JSON representation, using a declared property type as the conversion contract.
API unit family: TMS.MCP.Helpers
Syntax
TTMSMCPValueHelper = record
Methods
| Name | Description |
|---|---|
| FromJSON | Converts an incoming JSON argument into a typed value according to the declared property type. The returned value holds a native type for scalars and arrays (for example Integer, Double, Boolean, TDateTime or a dynamic array), while object and raw JSON kinds keep a reference to the original JSON value. |
| ToJSON | Converts the value into the JSON representation described by the given result type. An empty value converts to JSON null, and a value that already holds a JSON value is returned unchanged. |