Convert Json to Yaml

Hi guys,

I know this is a little of topic but it’s regarding unusable I have a curl command that i would like to translate in ansible but someway or somehow is not working. could anybody help me ? Here is the curl command
curl --basic -u admin:admin -d ‘{“name” : “ms3-simple-hello-world-app” , “servers”: [ “local$d50bdc24-ff04-4327-9284-7bb708e21c25” ], “applications”: [ “local$43d12cfd-f64a-4fa9-9367-3a0109c1721d” ]}’ --header ‘Content-Type: application/json’ http://52.73.56.141:8080/mmc-console-3.6.2/api/deployments​

Here is what I did but still not working

  • local_action: curl --basic -u admin:admin -d ‘“name”: “ms3-test-app”’,“servers”: [ “local$d50bdc24-ff04-4327-9284-7bb708e21c25” ] “applications”: [ “local$6444f208-f78c-4e1b-8b1e-4542f511f503” ] --header ‘Content-Type: application/json’ http://52.73.56.141:8080/mmc-console-3.6.2/api/deployments