/
ArrayLength JSON function
ArrayLength JSON function
Returns the length of the json array.
Namespace
json
Input
json-array
or json-string
that is an array.
Output
number(int
)
Example
if body
has the json specified above, then the result of the operation would return 8
as the result.
set-column len json:ArrayLength(json:Select(body, true, $.numbers))
, multiple selections available,
Related content
JSON functions
JSON functions
Read with this
Select JSON function
Select JSON function
Read with this
Parse JSON function
Parse JSON function
Read with this
Drop JSON function
Drop JSON function
Read with this
Parsing and exploding JSON arrays in Wrangler
Parsing and exploding JSON arrays in Wrangler
Read with this
Write as JSON Map directive
Write as JSON Map directive
Read with this
Created in 2020 by Google Inc.