I have a variable (via set_fact) containing a json string:
{ \"PolicyVersion\": { \"CreateDate\": \"2017-08-07T02:48:05Z\", \"Document\": { \
Actually Ansible is natively able to read JSON files.
see this question:
add-a-new-key-value-to-a-json-file-using-ansible