# In Ansible's debug module, is the msg parameter of str type or another type? 

**URL:** <https://forum.ansible.com/t/in-ansibles-debug-module-is-the-msg-parameter-of-str-type-or-another-type/43815>\
**Category:** Get Help\
**Created:** [July 10, 2025, 8:46am UTC](https://forum.ansible.com/t/in-ansibles-debug-module-is-the-msg-parameter-of-str-type-or-another-type/43815 "2025-07-10T08:46:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fangpengcheng](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/fangpengcheng/32/9029_2.png) [@fangpengcheng](https://forum.ansible.com/u/fangpengcheng)\
**Post date:** [July 10, 2025, 8:46am UTC](https://forum.ansible.com/t/in-ansibles-debug-module-is-the-msg-parameter-of-str-type-or-another-type/43815/1 "2025-07-10T08:46:19Z")

</div>

In Ansible’s debug module, is the msg parameter of str type or another type? Why can I pass numbers, lists, dictionaries, etc., unlike the official documentation describing it as str?"  
the ansible version used in V2.8.8,python3.7

 ![{7BA9771F-8B68-45F3-9A1C-4C9E92FED428}](https://us1.discourse-cdn.com/ansible/original/2X/8/8b625892cd825bfba25e7009b521f6bea5a16612.png)

---

<div class="post-metadata">

**Author:** ![bcoca](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bcoca/32/9269_2.png) [@bcoca](https://forum.ansible.com/u/bcoca)\
**Post date:** [July 10, 2025, 2:42pm UTC](https://forum.ansible.com/t/in-ansibles-debug-module-is-the-msg-parameter-of-str-type-or-another-type/43815/2 "2025-07-10T14:42:06Z")

</div>

it automatically ‘stringifies’ them … but then it also automatically ‘jsonifies’ the string on output, which is probably what seems so confusing.
