#Example json json='[{"t":"12345"}, {"t":999}]' #jq using starts with echo $json | jq -r '.[] | select(.t | startswith("123"))'