Have the below script :

That is returning a "Bad Request".
However, I have esentially the same request working via curl.
curl -D- -H
"Authorization: Basic xxxxxxxxxxxx1bXBraW5zMDQh" -X POST --data
"{ """fields""": { """project""": { """key""": """DWH""" }, """summary""": """REST test 11111.""", """description""": """test""", """issuetype""": { """name""": """Data Requests""" }
,"""components""":[{ """name""":"""Data Warehouse"""}] , """fixVersions""":[{"""name""":"""NA"""}]} }" -H "Content-Type: application/json"
https://jira.xxxxxxxxx.com/rest/api/2/issue/
Can anyone see where I am going wrong?
Many thanks!