bmel:json-path¶
Category: JSON · Returns: bmel:any
bmel:json-path(json: bmel:any, path: bmel:string)
Description¶
Extracts a value from a JSON string or object using a JSONPath expression. Supports dot notation, bracket notation, array index, recursive descent, wildcard, and filter expressions. Returns null when the path does not match.
Arguments¶
| Parameter | Type | Required | Description |
|---|---|---|---|
json | bmel:any | ✅ | The JSON string or object to query. |
path | bmel:string | ✅ | JSONPath expression starting with $ (e.g. $.choices[0].message.content). |
Example¶
bmel:json-path({chat:Response Payload}.$.raw_body, "$.choices[0].message.content")