Skip to main content

JSON Get String

This block reads the value of a key out of a JSON string.

Configuration

  • JSON String: the JSON to read from, for example {"key": "value"}. Usually a variable holding data received from elsewhere.
  • Key: the key to look up, for example key.

Connections

  • Value: executed after the lookup. The value is available to the following blocks as json_value.

Use it to pull individual fields out of a JSON payload received over MQTT, from an HTTP request, or from an HTTP response.

See also MQTT Subscribe, On HTTP Server Endpoint Called