To post json in windows, CURL needs to have special treatment because single quote does not work.
1 JSON via command line 1.1 JSON quoted with escape character
curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d "{\"name\": \"value\"}" http://localhost:8080/process
1.2 JSON quoted with another double quote
curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d "{""name"": ""value""}" http://localhost:8080/process
2 JSON via text file
curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d @json.txt http://localhost:8080/process
On the same directory, create a file “json.txt” with following content.
{"name": "value"}
Reference: https://stackoverflow.com/questions/11834238/curl-post-command-line-on-windows-restful-service