Bash Script Curl Output Json File