Skip to content
HTTP & JSON json

$json[]

The $json function is the entry point for all JSON operations. It initialises an internal JSON context that all subsequent JSON functions operate on. If called without a value, an empty object {} is created. If a value is provided, it must be valid JSON. The internal JSON structure persists until it is cleared with $jsonClear or overwritten by calling $json again.

Syntax

bdfd
$json[value?]

Examples

JSON Parse and Read

$jsonParse[{"bot":"Bot Creator","version":"2.0"}]
$title[JSON Context Overview]
$description[Bot Name: **$jsonValue[bot]**\nEngine Version: **$jsonValue[version]**]
$color[#00BCD4]
$sendMessage[]