Bash Script Curl Output Json Validator