SIZE

Returns the number of characters in text or the number of elements in an array.

Syntax 

SIZE(text_or_array)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"message": [
4
"north",
5
"south",
6
"east",
7
"west"
8
]
9
}
10
}

Formula

SIZE(my_action.message)

Output

"4"

Example 2

Input

1
{
2
"my_action": {
3
"message": "north"
4
}
5
}

Formula

SIZE(my_action.message)

Output

"5"
Was this helpful?