For curl post json, headers are non-negotiable. Also, Windows cmd butchers quotes. Two fixes:
1. Use double quotes *outside*, escape inner ones:
```bash
curl -X POST https://api.example.com/data -H "Content-Type: application/json" -d "{\"name\":\"test\",\"value\":123}"
```
2. Or use `curl --data-binary` to avoid quote chaos:
```bash
curl -X POST https://api.example.com/data -H "Content-Type: application/json" --data-binary "@data.json"
```
Save your JSON to `data.json` first. Lifesaver for Windows users.
1. Use double quotes *outside*, escape inner ones:
```bash
curl -X POST https://api.example.com/data -H "Content-Type: application/json" -d "{\"name\":\"test\",\"value\":123}"
```
2. Or use `curl --data-binary` to avoid quote chaos:
```bash
curl -X POST https://api.example.com/data -H "Content-Type: application/json" --data-binary "@data.json"
```
Save your JSON to `data.json` first. Lifesaver for Windows users.
