Skip to main content
Table of Contents

TTMSMCPResourceContent.ToJSON Method

Builds the object sent back to the client for one read.

API unit family: TMS.MCP.Resources Declaring type: TTMSMCPResourceContent

Syntax

TMS.MCP.Resources.hppPascalC++
function ToJSON: TJSONObject;
System::Json::TJSONObject* __fastcall ToJSON();

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.