9951 explained code solutions for 126 technologies


jqGet the array’s length property


somecommand | jq 'length'ctrl + c
somecommand

any command that has to output json, echo '[1,2,3]' for example

'length'

function, which returns the array’s length property