Scoped GlideScriptedProcessor - writeJSON(Object o)

Encodes an object as a JSON string and writes it to the current URL.

Table 1. Parameters
Name Type Description
o Object The object to encode to a JSON string.
Table 2. Returns
Type Description
void
var map = {"key1":"value1","key2":"value2"}
g_processor.writeJSON(map);