fix bad syntax for jq and output for curl