POST JSON with curl

Terminal
curl -X POST -H 'Content-Type: application/json' -d '{"key":"val"}' <url>