Skip to content
HTTP & JSON jsonSet

$jsonSet[]

$jsonSet is the primary way to build and modify JSON objects. It stores values while preserving their type — numbers remain numeric, booleans remain boolean. Dot notation allows setting deeply nested values: $jsonSet[user.profile.avatar;url] creates the intermediate objects automatically. Use $jsonSetString to force a value to be stored as a string.

Syntax

bdfd
$jsonSet[key;value]

Examples

Set Property on JSON Object

$jsonParse[{}]
$jsonSet[user.xp;150]
$title[JSON Set Value]
$description[Updated object: `$jsonStringify`]
$color[#57F287]
$sendMessage[]