TTMSMCPResourceContent.ToJSON Method
Builds the object sent back to the client for one read.
API unit family: TMS.MCP.Resources
Declaring type: TTMSMCPResourceContent
Syntax
function ToJSON: TJSONObject;
Returns
A new object holding the address, the media type when one was set, and the payload. Text takes precedence: the binary payload is only written when the text is empty, and an object carrying neither is written as empty text rather than left without a payload. The caller owns the returned object.