Bash Loop Over Json Array Element Redshift