Simple HTTP POST with curl

I don’t know why but I’m unable to send a POST request to my ESP8266.

I used following command:
curl http://[WLED IP]/json -d ‘{“on”:true}’

but it does absolutly nothing. The GET request is working absolutly perfect.
I would be happy about possible solutions
Thanks in advance

do: man curl
when you get acquainted with parameters you may find that your command is missing a crucial part.

curl -H "Content-Type: application/json" -X POST http://wled.local/json -d '{...}'

:wink:

Thanks for the fast reply.
But when im using your command I’m getting a error:
{“error”:9}

Update:

under Windows 10 curl you need to use ’ \ ’ in front of ’ " ’
so:
curl http://[WLED IP]/json -d '{\"on\":true}'

thanks for your efford