An example of sending JSON data using Curl. JSON is passed with the -d command-line option. Double quotes in JSON are escaped with \ ". When sending JSON using Curl, the -H "Content-Type: application/json" command line parameter is important and tells the server the media type of the resource in the request body. The Java code was automatically generated for the Curl JSON Request example.