To convert JSON object into an escaped JSON String value, Escape quotes and other meaningful literals with backslash(\).
JSON is a human readable data interchange format. JSON is a data object which can be converted into a String by escaping characters.
JSON Object:
{"name":"john","age":22,"class":"mca"}
Output JSON String:
{\"name\":\"john\",\"age\":22,\"class\":\"mca\"}"