Skip to content
HTTP & JSON jsonSetString

$jsonSetString[]

$jsonSetString forces the value to be stored as a JSON string type. This is important when you need to preserve leading zeros in IDs, ensure phone numbers aren’t parsed as integers, or when an API expects a string-typed field. In contrast, $jsonSet infers the type from the value content.

Syntax

bdfd
$jsonSetString[key;value]

Examples

Set Explicit String Value

$jsonParse[{}]
$jsonSetString[status;operational]
$title[Set String Field]
$description[Result: `$jsonStringify`]
$color[#5865F2]
$sendMessage[]