bmel:json-depth¶
Category: JSON · Returns: bmel:integer
bmel:json-depth(object: bmel:any)
Description¶
Returns the maximum nesting depth of a JSON object or array. A flat object has depth 1. Returns 0 for scalars and null.
Arguments¶
| Parameter | Type | Required | Description |
|---|---|---|---|
object | bmel:any | ✅ | The JSON object, array, or string to measure. |
Example¶
bmel:json-depth({chat:Request Payload}.$.messages)