i am using below commands:
curl -D- -u username:password -X POST --data ‘{"update": { "comment": [ { "add": { "body": "Bug has been fixed." }}]}}’ -H "Content-Type: application/json" http://jira_link/rest/api/2/issue/jira_issue/comment
curl -u username:password -X POST --data ‘{ "body":"Bug has been fixed." }’ -H "Content-Type: application/json" http://jira_link/rest/api/2/issue/jira_issue/comment
Error:
curl: (6) Couldn't resolve host 'body:Bug has been fixed.'
{"errorMessages":["Unexpected character ('â' (code 226)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: org.apache.catalina.connector.CoyoteInputStream@20fddc70; line: 1, column: 2]"]}
Can you please help me to resolve this?