# Failed when using exit\_json to get the return value

**URL:** <https://forum.ansible.com/t/failed-when-using-exit-json-to-get-the-return-value/31788>\
**Category:** Ansible Developer\
**Created:** [December 9, 2019, 3:46am UTC](https://forum.ansible.com/t/failed-when-using-exit-json-to-get-the-return-value/31788 "2019-12-09T03:46:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke\_Zhao](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@Luke\_Zhao](https://forum.ansible.com/u/Luke_Zhao)\
**Post date:** [December 9, 2019, 3:46am UTC](https://forum.ansible.com/t/failed-when-using-exit-json-to-get-the-return-value/31788/1 "2019-12-09T03:46:06Z")

</div>

Hi! Friends, I know we can get successful returns calling module.exit\_json, so I using the code below in my custom module to get some returns:

`

return\_args = dict(  
hello=hello, changed=changed, msg=msg, test=test  
)  
module.exit\_json(\*\*return\_args)

`

But after the module executed, I can not see the returns.  
In fact, I can see the returns if I use ansible-playbook to call the module using the option -v.

Have you ever seen this problem before? or can you give me some advices on this issue? thanks very much.
