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

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