# JSON Get Number

Process

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

JSON Get Number
J
V

# Inputs

IDAbbrevNameTypeDefaultDescription
jsonJJSONSTRINGThe JSON string to parse.

# Outputs

IDAbbrevNameTypeDefaultDescription
valueVValueNUMBER0The extracted numeric value.

# Configuration

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

Details:

Required

# Source Code

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