# Convert Json to Yaml

**URL:** <https://forum.ansible.com/t/convert-json-to-yaml/22174>\
**Category:** Ansible Project\
**Created:** [July 31, 2016, 1:35am UTC](https://forum.ansible.com/t/convert-json-to-yaml/22174 "2016-07-31T01:35:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GBANE\_FETIGUE](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Post date:** [July 31, 2016, 1:35am UTC](https://forum.ansible.com/t/convert-json-to-yaml/22174/1 "2016-07-31T01:35:36Z")

</div>

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​](http://52.73.56.141:8080/mmc-console-3.6.2/api/deployments%E2%80%8B)

---

<div class="post-metadata">

**Author:** ![GBANE\_FETIGUE](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@GBANE\_FETIGUE](https://forum.ansible.com/u/GBANE_FETIGUE)\
**Post date:** [July 31, 2016, 1:15pm UTC](https://forum.ansible.com/t/convert-json-to-yaml/22174/2 "2016-07-31T13:15:46Z")

</div>

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](http://52.73.56.141:8080/mmc-console-3.6.2/api/deployments)
