BotFrame

Data · Workflow node

JSON parser

The JSON parser node as it appears in the workflow editor.

What it does

Parse JSON data and optionally select a nested field.

Typical use

Read data.temperature from an HTTP response and use the numeric value in a condition.

How to use it

  1. Connect JSON textConnect the previous step's Flow and its text output, such as HTTP Request's Response body.
  2. Choose the valueLeave Field path empty for the complete JSON value, or enter a nested path such as data.items.0.name.
  3. Use Parsed valueConnect the result to another data node or a condition. Test malformed JSON as well as successful responses.

Settings

These are the options shown when you add this node. A connected value can replace a setting when the workflow runs.

Limits

Available on all plans, with no monthly parser quota. Accepts up to 256 KiB of JSON text, 32 nesting levels and 10,000 values.

SettingStarting valueWhat it controls
Field path (optional)EmptyOptional dot-separated field names or list positions, for example data.items.0.name.
JSON text{}JSON text to decode, usually connected from HTTP Request's Response body.

Value connections

Value connections pass information between nodes without changing the order of the workflow. When an input is not connected, BotFrame uses the value selected in the node or details from the starting Discord event when available.

Inputs

JSON textText
Required

Outputs

Parsed valueAny value
Optional

What happens when it runs

Converts JSON text into a value you can use in the workflow. Leave Field path empty for the whole value, or choose a nested field with a path such as data.items.0.name. Invalid JSON or a missing field stops the run with an error.

You can use this item in a published BotFrame workflow. You can also test it in the simulator.

These details match the node currently available in the BotFrame workflow editor.