'Convert Json file to a serializable string using python

I have a json file like below

{"a": "a_value",
 "b": "b_value"
}

I would like to convert it to the below using python3

{\"a\": \"a_value\", \"b\": \"b_value\"}

What would be the best and simple way to do it



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source