How to POST JSON using cURL?

How to POST JSON using cURL?

You can send JSON with a POST request using cURL using the -X option with POST and the -d option (data).Here is a sample command that sends a POST request…