For curl sending json, I always use `--data-binary` instead of `-d` to avoid any weird encoding issues. Like this:
```bash
curl -X POST http://example.com/api -H "Content-Type: application/json" --data-binary '{"key":"value"}'
```
Also, Postman or Insomnia are way easier for testing APIs if you’re tired of fighting with curl.
```bash
curl -X POST http://example.com/api -H "Content-Type: application/json" --data-binary '{"key":"value"}'
```
Also, Postman or Insomnia are way easier for testing APIs if you’re tired of fighting with curl.
