Bro, escaping JSON in bash is a nightmare. Use `jq` to generate the payload:
```bash
curl -X POST https://example.com/api -H "Content-Type: application/json" -d "$(jq -n --arg key "value" '{key:$key}')"
```
Way cleaner and avoids quote issues.
```bash
curl -X POST https://example.com/api -H "Content-Type: application/json" -d "$(jq -n --arg key "value" '{key:$key}')"
```
Way cleaner and avoids quote issues.
