Hey! I’ve been using curl sending JSON for a while, and one thing that trips people up is the Content-Type header. Make sure it’s exactly `application/json`. Also, try using `@` to send a JSON file instead of inline JSON:
```bash
curl -X POST -H "Content-Type: application/json" -d @data.json https://example.com/api
```
This way, you can edit the JSON file separately and avoid formatting issues.
```bash
curl -X POST -H "Content-Type: application/json" -d @data.json https://example.com/api
```
This way, you can edit the JSON file separately and avoid formatting issues.
