I have a bash script
#!/bin/bash body=$(cat << EOF { "CreatedBy": "$(hostname -f)", "Id": "$(uuidgen)", "Type": "TestAlertType", "AlertCategory": "NonUrgent" } EOF ) curl -H "Content-Type: application/json" -X POST -d $body https://dev.cloudapp.net/v1/
But I get an invalid json error in the message. What am I missing?
json bash curl
user330612
source share