Json To string store in a variable in ansible issue

Can anyone suggest on how to convert the json file content to a string inside a variable in ansible.
The method i used is to “cat xyz.json” and set_facts to a variable and converting output to to_json or to_yaml.
The u’ is removed but the spaces and ‘/n’ has been added.

Can anyone suggest the solution to convert json file to string variable.