Skip to content
HTTP & JSON jsonClear

$jsonClear[]

$jsonClear resets the internal JSON state entirely. This is useful when you need to reuse JSON variables in a loop, or when switching between different JSON data sources to avoid data leakage. After clearing, the context is equivalent to calling $json[] with no arguments — an empty object ready for new data.

Syntax

bdfd
$jsonClear[]

Examples

Reset JSON Context

$jsonParse[{"temp":"data"}]
$jsonClear
$title[Clear JSON Context]
$description[Internal JSON state has been purged.]
$color[#5865F2]
$sendMessage[]