Wild guess: Is your JSON wrapped in single quotes? Some shells eat those. Try:
```bash
curl -X POST https://api.example.com/data -H "Content-Type: application/json" -d "{\"key\": \"value\"}"
```
Or save the JSON to a file and use `-d @data.json`. Less shell drama.
---
```bash
curl -X POST https://api.example.com/data -H "Content-Type: application/json" -d "{\"key\": \"value\"}"
```
Or save the JSON to a file and use `-d @data.json`. Less shell drama.
---
