# Is it possible to see the JSON output of an ad-hoc command?

**URL:** <https://forum.ansible.com/t/is-it-possible-to-see-the-json-output-of-an-ad-hoc-command/15227>\
**Category:** Ansible Project\
**Created:** [May 14, 2014, 3:15am UTC](https://forum.ansible.com/t/is-it-possible-to-see-the-json-output-of-an-ad-hoc-command/15227 "2014-05-14T03:15:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Bell](https://avatars.discourse-cdn.com/v4/letter/k/d07c76/32.png) [@Kevin\_Bell](https://forum.ansible.com/u/Kevin_Bell)\
**Post date:** [May 14, 2014, 3:15am UTC](https://forum.ansible.com/t/is-it-possible-to-see-the-json-output-of-an-ad-hoc-command/15227/1 "2014-05-14T03:15:42Z")

</div>

If I run something like:

$ ansible -a “[-d my\_app] chdir=/run/uwsgi/app” ec2

Even with max verbosity, this doesn’t seem to output the raw JSON output.

However if I do, e.g. :

- command: “[-d uwsgi\_dev] chdir=/run/uwsgi/app”  
register: result
- debug: var=result

Then I get the full JSON output. Is it possible to get that in ad-hoc mode?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [May 14, 2014, 12:21pm UTC](https://forum.ansible.com/t/is-it-possible-to-see-the-json-output-of-an-ad-hoc-command/15227/2 "2014-05-14T12:21:16Z")

</div>

“-v” will show stdout of the command and shell modules.

I
