# JSON Get Boolean

Process

Extracts a boolean value from a JSON string using a dot-notation path.

JSON Get Boolean
J
V

# Inputs

IDAbbrevNameTypeDefaultDescription
jsonJJSONSTRINGThe JSON string to parse.

# Outputs

IDAbbrevNameTypeDefaultDescription
valueVValueBOOLEANfalseThe extracted boolean value.

# Configuration

IDNameTypeDefaultUnitDescription
pathPathSTRINGDot-notation path to the desired field, e.g. "sensor.enabled".

Details:

Required

# Source Code

View Volang source
output::set("value", json::get(input::get("json"), config::get("path")))
Extracts a boolean value from a JSON string using a dot-notation path.