#length
Returns the length of a string or array value.
#length(value)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | string | array |
The string or array to measure. |
Returns
Section titled “Returns”integer
Examples
Section titled “Examples”String and array lengths
Section titled “String and array lengths”{ "text": "hello", "items": [ 1, 2, 3 ]}{ "textLength": "#length($.text)", "itemCount": "#valueOf($.items)->#length()"}{ "textLength": 5, "itemCount": 3}