IResponderSendJson Method |
Formats the object as a JSON object and sends it via the response to the browser.
Namespace: VirtualRadar.Interface.WebServerAssembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax void SendJson(
IRequest request,
IResponse response,
Object json,
string jsonpFunctionName,
string mimeType
)
Sub SendJson (
request As IRequest,
response As IResponse,
json As Object,
jsonpFunctionName As String,
mimeType As String
)
void SendJson(
IRequest^ request,
IResponse^ response,
Object^ json,
String^ jsonpFunctionName,
String^ mimeType
)
abstract SendJson :
request : IRequest *
response : IResponse *
json : Object *
jsonpFunctionName : string *
mimeType : string -> unit
Parameters
- request
- Type: VirtualRadar.Interface.WebServerIRequest
The request object. - response
- Type: VirtualRadar.Interface.WebServerIResponse
The response object to populate. - json
- Type: SystemObject
The JSON object to serialise and send. - jsonpFunctionName
- Type: SystemString
The JSONP callback text to append to content. Pass null if the browser did not request a JSONP callback function. - mimeType
- Type: SystemString
The MIME type to use. Pass null to go with the default MIME type for JSON.
See Also