# Error while passing json string in command line

**URL:** <https://forum.ansible.com/t/error-while-passing-json-string-in-command-line/13849>\
**Category:** Ansible Project\
**Created:** [November 5, 2013, 3:04pm UTC](https://forum.ansible.com/t/error-while-passing-json-string-in-command-line/13849 "2013-11-05T15:04:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpatanaik](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@cpatanaik](https://forum.ansible.com/u/cpatanaik)\
**Post date:** [November 5, 2013, 3:04pm UTC](https://forum.ansible.com/t/error-while-passing-json-string-in-command-line/13849/1 "2013-11-05T15:04:43Z")

</div>

Hi,

I have written a simple playbook to create an EBS using ec2\_vol module.

I am trying to pass some variables via command line as a part of json string.

playbook(test.yml):

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [November 6, 2013, 2:06pm UTC](https://forum.ansible.com/t/error-while-passing-json-string-in-command-line/13849/2 "2013-11-06T14:06:52Z")

</div>

So the code is there to try YAML or JSON input. But I agree it should never traceback.

Please file a ticket on github and include what version of Ansible you are using if the version of Ansible is at least 1.3.X

If it’s not, please upgrade to 1.3.X and test there.
