Skip to main content

Object

An object-typed variable holds a plain JavaScript object. The default value you type into the Variables panel is trusted as-is — valid JSON object text works, and so does general JS object-literal syntax (unquoted keys, trailing commas, etc.) — whatever you type is emitted verbatim, with no reformatting or validation beyond what a real object literal needs.

Compiles to

let config = { retries: 3 };

Leaving the default value empty compiles to "no initializer" for let/var (just let config;), or "no top-level declaration at all" for a const — see the Variables overview for what that implies.

Get Variable / Set Variable

A Get config node reads it back; a Set config node assigns a new value and continues:

Get Variable

Set Variable

Use case

  • Settings bags: a small object of options passed around a request — e.g. {"retries": 3} — that reads far more clearly on the canvas than several loose scalar variables for the same concept.