Skip to content
HTTP & JSON jsonLoad

$jsonLoad — Loads JSON to an env variable

Loads JSON to an env variable

Syntax

$jsonLoad[variable;json]

Parameters

  • variable (text, required) — The variable to load json to
  • json (text, required) — The json data

Return Value

  • String.

Usage

$jsonLoad[variable;json] → result

Example

$sendMessage[$jsonLoad[o;{"a":1}]$env[o;a]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.