docsFunctionsJsonZjsonArrayIndex

ZjsonArrayIndex

Returns the 0-based index of the first occurrence of a value in the array at the specified key path, or -1 if not found.

Syntax

ZjsonArrayIndex{key;...;value}

Arguments

NameTypeRequiredDefault
keystringYes-
valuestringYes-

Example

ZjsonArrayIndex{users;Alice}