04-12-2013, 02:18 AM
I am running a curl command in powershell on windows 7, but it is generating an error indicating a parsing issue. The command is:
curl --basic -g -u admin:admin -d "{\"name\" : \"cci-dev\" , \"serversNames\": [ \"choprogdevapp\" ], \"applications\": [ \"local$dfde14f8-ef51-46a6-a112-ae57a96a786f\" ]}" --header "Content-Type: application/json" http://myhost:8080/mmc-console-3.3.2/api/deployments
The server returns a 500 and says:
HTTP Status 500 - org.codehaus.jackson.JsonParseException: Unexpected character ('n' (code 110)): was expecting double-quote to start field name
It is as though it is stripping the internal double quotes and then the server is not recognizing the name/value pairs in the data and is complaining about the value "name"
How can I get this command to parse properly.
Thanks