Click or drag to resize
IResponderSendJson Method
Formats the object as a JSON object and sends it via the response to the browser.

Namespace: VirtualRadar.Interface.WebServer
Assembly: 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
)

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