How to POST JSON data with curl

$ curl -X POST -H "Content-Type: application/json" -d '{"key":"value"}' [URL]

Command
curl
Description
Send a POST request with JSON data. Usage: curl -X POST -H ... -d ...
Deep Dive
-H: Header -d: Data Ensure you use proper quoting for JSON.