HTTP & JSON
jsonStringify
$jsonStringify[]
Converts the current internal JSON structure back into a compact JSON string with no extra whitespace.
Syntax
$jsonStringify[]
Return Value
string
A compact JSON string representation of the current internal JSON structure. Returns an empty string if no JSON context exists.
$jsonStringify returns the internal JSON as a compact, minified string — ideal for sending in API requests, storing in variables, or logging. For human-readable output, use $jsonPretty instead. If no JSON has been initialised (via $json or $jsonParse), the function returns an empty string.
Examples
Parse, modify, and stringify
$jsonParse[{"name":"Alice"}]
$jsonSet[age;25]
Result: $jsonStringify[]
// Output: {"name":"Alice","age":25}
Build JSON from scratch
$json[]
$jsonSet[status;success]
$jsonSet[timestamp;1742265600]
$textSplit[tags;bot,automation,json;,]
$jsonArray[tags;,]
$jsonStringify[]
Store stringified JSON in a variable
$jsonParse[$httpResult]
$var[compact;$jsonStringify[]]
Compact: $var[compact]